Percolation/Bond percolation: Difference between revisions

Content added Content deleted
(Updated D entry)
(Updated D entry)
Line 35:
Xorshift rng;
 
this(in uint nRows, in uint nCols, in uint seed) /*pure*/ nothrow {
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]) // THEThe bottom.
return MaybeCol(c);