How-To Guide

CLASS 1
80
Exercise
Does the robot work well? Now, we are going to use ‘Loop’ and random numbers to slightly change the movement
of Gunman. Before, spacebar caused the robot to shoot rubber bands.
Add a script so that when the flag icon is clicked, Motor 7 shoots the rubber band and waits 1-2 seconds. Then,
make it repeat 5 times and stop the motor. Make sure the robot has five rubber bands since it will be shooting
five times.
Try it!
How to code the gunman robot