Choose a country
Grade 2Computer scienceAlgorithms

Sequence and direction: steering a robot

Lesson goal: Plan a robot’s path with “forward, turn left, turn right” and get around obstacles.
← Algorithms

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.

Lesson goal: Plan a robot’s path with “forward, turn left, turn right” and get around obstacles.

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. 1

    Warm-up5 min

    “Left-right” game.

  2. 2

    New topic10 min

    Commands and turns.

  3. 3

    Practice10 min

    Plan paths on a board.

  4. 4

    Game10 min

    Child-robot game.

  5. 5

    Wrap-up5 min

    Shortest path.

Let’s understand

For the student Simple language

CommandWhat the robot does
⬆️moves one square forward
↩️turns left on the spot
↪️turns right on the spot
⬆️×3three squares forward
Path: ⬆️×2, ↪️, ⬆️×2 → 🚩. If a block is in the way, take another path.

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

  1. Draw a 5×5 board: a robot, a flag and 2 blocks.
  2. Write the robot’s path with arrows.

How the classwork looks in the notebook

15 November1Classwork2⬆️ ↩️ ↪️ · ⬆️×33
Writing order: 1 Date 2 Heading 3 Line 3: ⬆️ ↩️ ↪️ · ⬆️×3
Sample: the date and heading follow this country’s notebook rules.

Open notebook

Watch out: common mistakes

Moving the robot while turning. Turning only changes direction; ⬆️ is needed to move.
Mixing up the robot’s left and yours. Imagine you are the robot and turn the same way.

Where it helps in life

  • Loops and programs
  • Moving a character on screen

At home

Core

  1. Write commands to reach a toy in your room (steps and turns).

Extra ⭐

  1. Find a second, shorter path to the same place.

How to do it

  1. Do the task with a grown-up.
  2. 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)
  1. Plan the path

    1. 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

15 November1Homework2The robot’s path3
Writing order: 1 Date 2 Heading 3 Line 3: The robot’s path
Sample: the date and heading follow this country’s notebook rules.

Check yourself