Anonymous user
Percolation/Site percolation: Difference between revisions
Updated D entry
(Updated D entry) |
(Updated D entry) |
||
Line 298:
}
bool percolate(ref Grid grid) pure nothrow @safe @nogc {
bool walk(in size_t r, in size_t c) nothrow @safe @nogc {
enum bottom = nRows - 1;
grid[r][c] = Cell.visited;
|