Fix the bug identified in #400

This commit is contained in:
Alex Kapranoff
2022-01-04 00:47:34 -08:00
parent 3b4b14427c
commit 6f599f12f6

View File

@@ -60,6 +60,10 @@ while (keys %is_visited < $width * $height) {
}
}
unless ($path_found) {
$walls[-1]->[rand $width] |= 1;
}
print_maze();
sub input_dimensions {