3
Spin and clear
Computing 1: Topic 1.3, pp. 33–48
GoalSay how many quarter turns make a half turn and a full turn, and why we clear first.
New words
half turn · two quarter turnsfull turn · four quarter turns, all the way round
Explanation
Two quarter turns make a half turn. The robot then faces the opposite way. Four quarter turns make a full turn. The robot faces the way it began. If you forget the clear button, old commands are still inside. The robot does them first.
Worked examples
Spin all the way round: R R R R. That is four quarter turns. The robot faces up again.
The robot has old commands F F inside. We forget clear and press R F GO. The robot does F F R F. It goes up two, turns right, goes one.
This time we press clear first. Now only R F runs. The robot turns right and goes one square.
Class activity
Spin and clear: stand up. Do two quarter turns and say which way you face. Do four quarter turns. Then play ‘old commands’: your partner gives you two secret moves first. You forget to clear. Then your partner says a new move. You do all three. What went wrong?
Practice
1
How many quarter turns make a half turn?
2.
2
How many quarter turns make a full turn?
4.
3
The robot has an old F inside. We forget clear and press R F GO. The robot starts at A1 facing up. Where does it end?
B2. (It does F, then R, then F.)
4
Why do we press clear first?
To wipe out old commands so they do not run.