try
This commit is contained in:
parent
b8fb261544
commit
a0dcf820f4
@ -108,7 +108,7 @@ int solve_maze(char* maze, int size) {
|
||||
}
|
||||
}
|
||||
|
||||
//cleanup redundant routes
|
||||
//cleanuup 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