Year 2 (ages 6–7, Grade 1 in the US) · Computing · Programming a floor robot · Lesson 2
Programming a floor robot
Programming a floor robot with forward, back and quarter turns on a grid, predicting where it will end and debugging.
Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE computing courses. Check which course your school follows.

14-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Use forward, back, left and right
- Follow programs on a grid
- Predict the result
- Debug a program
The method
- Where does it start, and which way does it face?
- Plan the moves, one at a time.
- Predict where it will end.
- Run it - debug if it goes wrong.
Key words: program, floor robot, forward, turn, predict, debug.
Worked examples
Worked examples from the lesson, with every step.
Question 1
A robot faces up and turns right. Which way does it face?
- Step 1: quarter turn
Answer: right
Question 2
A robot faces up and turns left. Which way does it face?
- Step 1: quarter turn
Answer: left
Question 3
Does ‘turn right’ move the robot to a new square?
- Step 1: it just turns
Answer: no