This package is a collection of some classical computer games (e.g. the Mine sweeper and Five in a row) as well as other funny stuff.
Some examples:
## install.packages('fun')
library(fun)
if (.Platform$OS.type == "windows") x11() else x11(type = "Xlib")
mine_sweeper()
library(fun)
gomoku()
You can take a look at the list of functions in this package by reading the HTML help page (go to help.start()), and I also need to mention the demos, e.g. see demo('TurtleGraphics') for a demo of Turtle graphics (how many people know the old Logo programming language?), and demo(package = 'fun') for a list of all demos in this package.
demo('RealTurtle', package = 'fun')
Posted by Wathsala Karunarathna
No comments:
Post a Comment