Maze generation: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: fix minor typo) |
Thundergnat (talk | contribs) m (Undo revision 101631 by Thundergnat (talk) Braino) |
||
Line 698: | Line 698: | ||
} |
} |
||
my @stack; |
my @stack; |
||
my @current = $ |
my @current = $start_y, $start_x; |
||
loop { |
loop { |
||
if my @next = get_unvisited_neighbors( @maze, @current ) { |
if my @next = get_unvisited_neighbors( @maze, @current ) { |