Description Usage Arguments Value Examples
An object with superclass "matrix" and subclass "board"
1 |
mat |
a matrix (if valid, a square matrix that contains only 0s, 1s, and 2s) |
n |
a positive integer denote the size of the board |
p |
a number between 0 and 1 that denotes the fraction of the n^2 squares are blocked |
'board' sub - class (matrix primary class) object; if matrix input paramter is incorrect, return an error
1 | board(mat = NULL, n = 5, p = 0.25), board(generate_board_mat())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.