board | Creating board object |
check_contain | check if a string that only contains * and . and space |
check_possible | check the whole board if there is more possible water flows |
generate_board_mat | generates a matrix of 0 and 1 |
is_valid | test whether a matrix a valid |
percolate | add percolate method to percolate board |
percolate.board | returns the board with water filled |
percolate-package | percolate: Percolation Simulation |
plot.board | plot the board |
read_boards | read in a file of matrices |
transform_one | transforms a string of * and . to 0 and 1 |
transform_vec | transform a vector of strings containing * and . |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.