mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-21 23:00:43 -08:00
Fix the bug identified in #400
This commit is contained in:
@@ -60,6 +60,10 @@ while (keys %is_visited < $width * $height) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unless ($path_found) {
|
||||||
|
$walls[-1]->[rand $width] |= 1;
|
||||||
|
}
|
||||||
|
|
||||||
print_maze();
|
print_maze();
|
||||||
|
|
||||||
sub input_dimensions {
|
sub input_dimensions {
|
||||||
|
|||||||
Reference in New Issue
Block a user