Maze generation: Difference between revisions

Content added Content deleted
m (→‎{{header|POV-Ray}}: Explanation added about iterative approach)
 
Line 25: Line 25:
V hor = [[‘+--’] * w [+] [String(‘+’)]] * (h + 1)
V hor = [[‘+--’] * w [+] [String(‘+’)]] * (h + 1)


F walk(Int x, Int y) -> N
F walk(Int x, Int y) -> Void
@vis[y][x] = 1
@vis[y][x] = 1
V d = [(x - 1, y), (x, y + 1), (x + 1, y), (x, y - 1)]
V d = [(x - 1, y), (x, y + 1), (x + 1, y), (x, y - 1)]