Description
Minesweeper game
Usage
Miney(n, ucol="#b8ff73", gcol="#f0f0f0", bcol="red", space=0.05, pbombs=0.15)
Arguments
- n
Size of the field to play, i.e. n=9 (default) is 9 x 9 field.
- ucol
Color of unknown cells, default is "law green"
- gcol
Color of good cells, default is gray
- bcol
Color of bad cells
- space
Space between cells
- pbombs
Proportion of cells with bombs
Details
Heavily modified from 'Miney::miney()' of Roland Rau. See also the fun::mine_sweeper() function.
Examples
Run this codeif (FALSE) {
## interactive command:
Miney(3)
}
Run the code above in your browser using DataLab