This commit is contained in:
Peter Petrek 2022-01-14 02:12:14 +01:00
parent e5853fa96c
commit 32ccd86934

View File

@ -104,14 +104,14 @@ int solve_maze(char* maze, int size) {
}
//cleanup redundant routes
for (int i = size - 2; i >= 0; i--) {
/*for (int i = size - 2; i >= 0; i--) {
for (int j = size - 2; j >= 0; j--) {
if (maze2d[i][j] == '*' && maze2d[i + 1][j] == '*' && maze2d[i + 1][j + 1] == '*' && maze2d[i][j + 1] == '*') {
maze2d[i + 1][j + 1] = ' ';
maze2d[i][j + 1] = ' ';
}
}
}
}*/
//serialize
for (int i = 0; i < size; i++) {