Lesson 3: Using Multiple Sensors Together
In the previous Lesson, the VR Robot knocked over at least two buildings, but also fell off of the Playground. In this Lesson, the VR Robot will still knock over at least two buildings, but this time, without falling off of the Dynamic Castle Crasher Playground!
Learning Outcomes
- Identify how to use a sensor command in the Boolean condition in a while loop and another sensor value in the if else statement, in order to make repeated decisions with multiple sensors.
- Explain why multiple conditions are sometimes needed in order to solve a challenge.
The Dynamic Castle Crasher Problem Part 2
Not only do the locations of the castles change each time the Playground is reloaded, but the lack of walls on the Playground also means that the VR Robot can drive off the Playground entirely. Now that the changing locations part of the problem has been solved, keeping the VR Robot on the Playground is the next step. Luckily, we can use additional sensor feedback to help complete the challenge!
Select the Next button to continue with the rest of this Lesson.