Description Usage Arguments Value Examples
Class constructor function for the class "board".
1 |
mat |
If not NULL, contains a board matrix. |
n |
Dimension of the square board matrix. Used only when mat == NULL. |
p |
A float between 0 to 1 that denotes the fraction of the n^2 squares are blocked. Used only when mat == NULL. |
The generated board object per inputted instructions.
1 | board(mat=generate_board_mat())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.