Learn R Programming

mineSweepR (version 0.1.1)

mineSweepR-package: mineSweepR: Mine Sweeper Game

Description

This is the very popular mine sweeper game! The game requires you to find out tiles that contain mines through clues from unmasking neighboring tiles. Each tile that does not contain a mine shows the number of mines in its adjacent tiles. If you unmask all tiles that do not contain mines, you win the game; if you unmask any tile that contains a mine, you lose the game. For further game instructions, please run `help(run_game)` and check details. This game runs in X11-compatible devices with `grDevices::x11()`.

Arguments

Author

Maintainer: Xiurui Zhu zxr6@163.com

Examples

Run this code
# Run mine sweeper game
if (interactive() == TRUE) {
  run_game()
}

Run the code above in your browser using DataLab