Description Usage Arguments Value Examples
generate_board_mat
1 | generate_board_mat(n = 5, p = 0.25)
|
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 |
a matrix
1 | generate_board_mat(n = 10, p = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.