mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-13 00:00:25 -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();
|
||||
|
||||
sub input_dimensions {
|
||||
|
||||
Reference in New Issue
Block a user