a
This commit is contained in:
parent
a0dcf820f4
commit
37b2141053
@ -108,7 +108,7 @@ int solve_maze(char* maze, int size) {
|
||||
}
|
||||
}
|
||||
|
||||
//cleanuup redundant routes
|
||||
//cleanup redundant routes
|
||||
for (int y = size - 2; y >= 0; y--) {
|
||||
for (int x = size - 2; x >= 0; x--) {
|
||||
if (maze2d[y][x] == '*' && maze2d[y + 1][x] == '*' && maze2d[y + 1][x + 1] == '*' && maze2d[y][x + 1] == '*') {
|
||||
|
Loading…
Reference in New Issue
Block a user