README.md

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()



Try the minesweeper package in your browser

Any scripts or data that you put into this service are public.

minesweeper documentation built on April 3, 2025, 9:29 p.m.