- You will see ScoutRider move one step forward and stop.
Checkpoint #3 – Rotate the robot
- Let’s add a second line of code below our existing code:
robot.turn_right() - Reset again.
- You will see ScoutRider move one step forward and turn right.
Checkpoint #4 – Solve the Red Puzzle
Try to collect the Red cable. This is a simple challenge but pay attention to the battery power level in the status bar. You will need to change your code.
Checkpoint #5 – Solve the Red + Green Puzzle
Now see if you can collect the Red cable and all the Green circuit boards. Don’t forget your robot has a command to move backwards.
Checkpoint #6 – Solve the Red + Green + Blue Puzzle
Now things can get challenging. See if you can collect the Red cable, Green circuit boads, and Blue gears
Challenge
For a difficult challenge, you can write an automatic algorithm to find the solution to these puzzles. You will need to input the positions of the items to your code. If it works your algorithm should generate all of the correct moves. You may not know how to solve this problem right now, but you will learn these skills in the next few months. You can start thinking about how this algorithm should work without doing any actual coding.