Anonymous user
Maze generation: Difference between revisions
→{{header|Red}}
Line 6,725:
newneighbour: function [pos][
nnbs: collect [
if all [pos/x > 0 not visited?
if all [pos/x < (size/x - 1) not visited?
if all [pos/y > 0 not visited?
if all [pos/y < (size/y - 1) not visited?
]
pick nnbs random length? nnbs
|