Anonymous user
Percolation/Bond percolation: Difference between revisions
Updated D entry
(Updated D entry) |
(Updated D entry) |
||
Line 35:
Xorshift rng;
this(in uint nRows, in uint nCols, in uint seed)
nr = nRows;
nc = nCols;
Line 81:
if (r < nr - 1 && !hWalls[r + 1][c] && !cells[r + 1][c])
return floodFill(r + 1, c);
else if (r == nr - 1 && !hWalls[r + 1][c]) //
return MaybeCol(c);
|