Description Usage Arguments Value See Also
This function implements a recursive version of the Flood Fill algorithm in the x_mask
matrix.
It starts at the specified x_mask[row,col]
coordinates and tries to fill the 8 neighbouring matrix elements
with a 1 when such elements (both in x_mask
and x_real
matrices) are 0. This function is mainly used to
update a msBoard
object in a msweepeR
session.
1 | revealTile(x_real, x_mask, row, col)
|
x_real |
A matrix. |
x_mask |
A matrix. Must be of same width and length as |
row |
A positive integer indicating the row number where the Flood Fill will start. |
col |
A positive integer indicating the col number where the Flood Fill will start. |
This function returns an updated (flooded) version of the matrix x_mask
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.