mine_sweeper | R Documentation |
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.
mine_sweeper(width = 10, height = 10, mines = 20, cheat = FALSE)
width |
number of grids in horizontal axis |
height |
number of grids in vertical axis |
mines |
number of mines |
cheat |
logical. If |
Linux/Mac users have to use X11(type = 'Xlib')
or the Cairo
graphics device Cairo()
in the package cairoDevice.
Yixuan Qiu yixuan.qiu@cos.name
https://en.wikipedia.org/wiki/Minesweeper_(computer_game)
## should use Xlib for the x11() device under *nix, e.g if (interactive()) { if (.Platform$OS.type == "windows") x11() else x11(type = "Xlib") mine_sweeper() }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.