Description Usage Arguments Value Examples
For each entry on the current board, percolate a single step (up, down, left, right) if the entry contains water. This is a helper function of percolate.board
1 | percolate_fill(curr_board)
|
curr_board |
A board with the latest board state. |
An updated board by performing a single percolation step on each entry of the inputted board. If no more water could be filled into the board, the returned board should be identical to the inputted board.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.