Rescuer: Extension
2. Swap left-facing for right-facing sensor
You have just navigated a maze using what is known as a left-wall following algorithm. It is also possible to navigate a maze using a right-wall following algorithm.
Reposition your left-facing distance sensor so that it is on the right side of the robot, facing outwards, and change your code so that it navigates using the right wall of the maze instead of the left wall. You are recommended to start by rewriting your truth table.
Test your rescuer robot with the same maze and compare the route that it takes to the exit with the route that it previously took. If you have time, try navigating the maze in reverse as well.
Which algorithm behaves better? Left-facing or right-facing?