2
The robot’s buttons
Computing 1: Topic 1.2, pp. 19–32
GoalSay what each command button does.
New words
command · a button or card that tells the robot what to doclear · wipe out the old commands
Explanation
Each button is a command. The forward button moves the robot one step. The back button moves it one step back. The turn buttons make a quarter turn on the spot. GO makes the robot do its commands. The clear button wipes out old commands.
Worked examples
Forward moves one step. If you press forward three times, the robot moves three steps.
A turn button turns the robot a quarter turn on the spot. To go in the new direction, you must press forward after it.
The pause button makes the robot wait a short time. The GO button starts the show. Nothing moves until you press GO.
Class activity
Command cards: draw the seven buttons on seven pieces of paper: forward, back, left, right, GO, clear and pause. Use two colours. Put them face down. Turn one over. Your partner says what it makes the robot do. Then your partner turns one over for you.
Practice
1
Which button starts the robot moving?
Card 2, the GO button.
2
The robot faces left. You press the right turn button. Where is the robot now?
In the same square, facing up.
3
What does the clear button do?
It clears old commands.
4
How many steps does the robot go if you press forward 4 times and then GO?
4 steps.