mineR: Play the Mine game in R

Description Usage Arguments Details Author(s) Examples

View source: R/mineR.R

Description

Use R to play the Mine game (currently only for Windows system).

Usage

1
2
mineR(width = 10, height = 10, mines = 20, text.cex = 2, 
      cheat = FALSE, seed = NULL, ...)

Arguments

width

number of grids in horizontal axis.

height

number of grids in vertical axis.

mines

number of mines.

text.cex

the amount by which text in graphics should be magnified relative to the default. Adjust this parameter when the size of text doesn't fit the grid.

cheat

logical. If TRUE a matrix indicating the mines will be printed.

seed

seed for random number generator.

...

other arguments passed to set.seed.

Details

The controls should be familiar to you: Click the left mouse button to dig an area, and right button to mark or unmark the area with flags.

Author(s)

Yixuan Qiu

Examples

1
2
3
4
## Not run: 
mineR(width=8, height=8, mines=10, text.cex=3)

## End(Not run)

fun documentation built on May 2, 2019, 6:06 p.m.