Lesson 2: Mini Challenge
For this mini challenge, create a project where the VR Robot navigates the Disk Maze Playground from start to finish using the Front Eye Sensor. Use the while loops with not conditions and front_eye.detect commands to instruct the VR Robot to drive up to each disk at least once, before driving to the red disk to finish the challenge. For this challenge, the VR Robot must:
- Drive up to each disk at least once.
- Turn right if the Front Eye Sensor detects a green disk.
- Turn left if a blue disk is detected.
-
Stop at the red disk.
Follow these steps to complete the mini challenge:
-
Watch the solution video to see how the VR Robot should drive in order to complete the mini challenge. The robot starts on the green arrow near the lower left corner of the playground, opposite the first green disk. To navigate the maze, the robot drives forward to the green disk and turns right. It then drives to the next blue disk and turns left. The robot repeats this with the next three blue disks. Then the robot drives to the green disk and turns right, drives to the final blue disk and turns left, drives to the final green disk and turns right. The robot then drives and stops when the red disk is detected, indicating it has reached the end of the maze.
Video file - Create a project by adding or removing the necessary commands to the Unit7Lesson2 project.
- Start the project to test it.
- If the project is not successful, edit and try again. Continue to revise and run the project until the VR Robot successfully navigates the Disk Maze Playground from start to finish, driving to each disk once.
- Save the project once the VR Robot successfully navigates the Disk Maze Playground from start to finish.
Congratulations! You solved the mini challenge!