Fix the bug identified in #400

This commit is contained in:
Alex Kapranoff
2022-01-04 00:47:34 -08:00
parent 96f1a6348b
commit 4ac94d5a37

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 {