powered by
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)
number of grids in horizontal axis
number of grids in vertical axis
number of mines
logical. If TRUE a matrix indicating the mines will be printed
TRUE
https://en.wikipedia.org/wiki/Minesweeper_(computer_game)
# NOT RUN { ## 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() } # }
Run the code above in your browser using DataLab