An improved version of my first path finding algorithm. This time it notes down each intersection and makes a choice there. If it later runs into a dead end it will jump back to that intersection and make a different choice. The dead end paths are marked in blue. The red path is the way to the end. It also will first pick a way that leads down because the end is at the bottom. Only if that is a dead end will it chose anther. I also switched out the maze for something a lot bigger because it would solve the smaller maze so fast that you did not get to see it. I recommend you open it in a new tab to see the whole maze. I hope you like it! Post any recommendations in the comments.
This is awesome! The biggest problem is that the Pathfinder is going back into areas it has already surrounded. It needs to learn to take more types of turns.
It seems to very for time for me because I close the tab then reopen the pathfinder and it takes a different route some times. It gets longer or shorter depending on the route.