Sequence and direction: steering a robot
About this lesson

A robot walks on a squared board. Commands: ⬆️ one square forward, ↩️ turn left, ↪️ turn right. Turning doesn’t move the robot; it only changes which way it faces. If a block is in the way, we change the path. Repeated commands are written short: ⬆️×3.
What the book shows
In computer science the child first learns to think through unplugged games: recognising information, ordering steps and learning safety rules.
Textbook link:
This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.
The lesson step by step
- 1
Warm-up5 min
“Left-right” game.
- 2
New topic10 min
Commands and turns.
- 3
Practice10 min
Plan paths on a board.
- 4
Game10 min
Child-robot game.
- 5
Wrap-up5 min
Shortest path.
Let’s understand
For the student Simple language

| Command | What the robot does |
|---|---|
| ⬆️ | moves one square forward |
| ↩️ | turns left on the spot |
| ↪️ | turns right on the spot |
| ⬆️×3 | three squares forward |
For the parent
How to help
- At home your child is the “robot” and you are the “programmer”: “2 steps forward, turn right”.
- Then swap roles.
- Put a cushion down as an obstacle.
For the teacher
Lesson goals
- Plan a robot’s path with “forward, turn left, turn right” and get around obstacles.
How to teach it
- Unplugged games, cards, role play, discussion
Differentiation
- Weaker pupils: 2–3 steps; stronger pupils build their own algorithm
Questions for the class
- How does the robot turn and get around an obstacle?
How to check
The pupil writes a correct path on a board with an obstacle.
Scientific Scientific language
Left and right are the robot’s own
When the robot faces us, its right is our left. So first check which way the robot faces.
Repeat (loop)
Writing “⬆️×3” is a loop: you don’t have to write the same command again and again.
Self-study
Step by step
- Which way is the robot facing?
- Where is the flag?
- Any obstacles?
- I write the commands and check with my finger.
Going deeper
Scientific language: for older students, parents and teachers.
Robot vacuum cleaners also turn when they bump into something and carry on in another direction.
Play and check
Does this command move the robot to a new square?
How to write it down
- Draw a 5×5 board: a robot, a flag and 2 blocks.
- Write the robot’s path with arrows.
How the classwork looks in the notebook
Sample: the date and heading follow this country’s notebook rules.
Watch out: common mistakes
Where it helps in life
- Loops and programs
- Moving a character on screen
At home
Core
- Write commands to reach a toy in your room (steps and turns).
Extra ⭐
- Find a second, shorter path to the same place.
How to do it
- Do the task with a grown-up.
- Explain in words what you noticed.
Answers for parents
For example: ⬆️×3, ↪️, ⬆️×2. A shorter path usually has fewer steps and turns.
Step-by-step homework solution — Show the solution (try it yourself first)
Plan the path
- The robot is 2 squares below the 🚩, facing up: ⬆️×2. If a block is in the way: ↪️, ⬆️, ↩️, ⬆️×2, ↩️, ⬆️.
How the homework looks in the notebook
Sample: the date and heading follow this country’s notebook rules.