draw.msBoard: Draw a msweepeR board

Description Usage Arguments Details See Also Examples

View source: R/msBoard.R

Description

This method draws a msweepeR board into the output console. When drawing the board game into the console, all tiles will have a white background. Unopened tiles will have a black dot, while opened ones will be represented by one blank space if they're empty or they will contain a number indicating the total number of mines in the 8 neighbouring tiles.

Usage

1

Arguments

x

A msweepeR board (an R object of class msBoard).

Details

This method is called with the S3 method play.msweepeR, and it's recommended that it's only called through such method.

See Also

msweepeR, msBoard

Examples

1
2
3
4
## Not run: 
x <- msBoard(); draw.msBoard(x)

## End(Not run)

pablorm296/msweepeR documentation built on Nov. 4, 2019, 11:16 p.m.