The code has
???? for the turn angle. Replace
???? with
25 (to rotate 25° clockwise toward the right fragment), then click
Run Code!
1. Watch the first shot fly straight up and blast the large asteroid ($+20$ pts).
2. Notice how the large rock fractures into two medium fragments drifting left and right.
3. With
turn(25), your ship turns clockwise and
fire() hits the right-hand fragment ($+50$ pts)!
4. Challenge: Can you add another turn to blast the left fragment as well? (Hint: turn counter-clockwise with a negative angle, e.g.
turn(-50) followed by
fire()!)