Play Minesweeper

Play and record games of minesweeper using a graphics device that supports event handling. Replay recorded games and save GIF animations of them. Based on classic minesweeper as detailed by Crow P. (1997) < https://minesweepergame.com/math/a-mathematical-introduction-to-the-game-of-minesweeper-1997.pdf>.


minesweeper

Play minesweeper in R, replay your games and save them to GIF.

Installation

You can install minesweeper with:

install.packages("minesweeper")

You can install the development version of minesweeper from GitHub with:

# install.packages("devtools")
devtools::install_github("hrryt/minesweeper")

Example

library(minesweeper)
x11() # Unix-specific example
recording <- play_minesweeper()
replay_minesweeper(recording)
# install.packages("gifski")
save_minesweeper_gif(recording)
dev.off()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("minesweeper")

1.0.1 by Harry Thompson, 2 years ago


https://github.com/hrryt/minesweeper


Report a bug at https://github.com/hrryt/minesweeper/issues


Browse source code at https://github.com/cran/minesweeper


Authors: Harry Thompson [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports grid

Suggests gifski


See at CRAN