minesweeper: Play the Mine Sweeper game in R

Description Usage Arguments Note Author(s) References

Description

Just type in minesweeper() and the game will start The controls should be familiar to you: Click the left mouse button to dig in an area, and right button to mark or unmark the area with flags.

Usage

1

Arguments

width

number of grids in horizontal axis

height

number of grids in vertical axis

mines

number of mines

cheat

logical. If TRUE a matrix indicating the mines will be printed

Note

Linux/Mac users have to use X11(type = 'Xlib') or the Cairo graphics device Cairo() in the package cairoDevice.

Author(s)

Bowei Wei wbwlazycat@126.com

References

http://en.wikipedia.org/wiki/Minesweeper_(computer_game)


PHP2560-Statistical-Programming-R/r-package-the-best-team documentation built on May 13, 2019, 10:59 p.m.