Rescuer: Extension

This is the third challenge within the Robotics with GoPiGo and Python Curriculum.

Your task is to design a robot program that can navigate through the maze-like jungle without trampling over any plants or getting stuck in any dead ends.

Learn how to use the Distance Sensor and practice using the left-hand rule of maze-solving.

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?