Maze-solving algorithm: Difference between revisions

Content deleted Content added
m Made the code format for "subtracting by one" consistent by adding a space between the variable and the subtraction operator.
Line 93:
return true;
}
if (y != height - 1) // Checks if not on bottom edge
if (recursiveSolve(x, y+1)) { // Recalls method one down
correctPath[x][y] = true;