Time for a challenge
Challenge #1
Attach a color sensor to the front of the robot and find some red and green objects that your sensor can sense. Now, create the track shown in the following image and get to the end of the racetrack while ensuring the following conditions are satisfied:
- The car must only start the journey when it senses the green object. You must place this green object in front of the color sensor when you wish to start the journey on the racetrack.
- The car must stop whenever it senses the red object. Try to show this object at the stop point of the racetrack.
Hint: Position your color sensor horizontally so that it can sense the objects that you have provided.
You can try many such different routes and try to finish them as quickly as possible. This will help you enhance your coding skills as well.