Anonymous user
Maze generation: Difference between revisions
More readable D code
(Simpler D version) |
(More readable D code) |
||
Line 814:
enum int w = 16, h = 8;
alias std.array.replicate R;
auto
void walk(in int x, in int y) /*nothrow*/ {
Line 830:
}
}
walk(uniform(0, w), uniform(0, h));
foreach (a, b; lockstep(hor, ver ~ []))
|