Maze solution #2 Follow the right wall - Hsanokklis/2023-2024-Tech-journal GitHub Wiki
Another well-known algorithm for solving a maze is to follow the right wall (or alternatively, follow the left wall).
Consider these instructions for the right wall follower algorithm:
Go in a straight line until you encounter a junction or a dead-end. At a junction, always go to rightmost option from where you are currently facing. At a dead-end, turn around 180 degrees.