Jump to content

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;
Cookies help us deliver our services. By using our services, you agree to our use of cookies.