Lesson 2: Adding a condition on the route

Operational objectives

The student:

  • determines directions and establishes the position of the robot in relation to oneself, as well as in relation to other objects, distinguishes the left and right side, up, down,
  • arranges a sequence of instructions for the robot using blocks with directional arrows,
  • reads the sequence of instructions written using blocks with directional arrows,
  • avoids obstacles in the form of maze walls,
  • applies in the sequence of instructions the condition "if you are on a field marked with a color, then change the direction of driving" (new goal).

Brief description

Using simple exercises in the Go Lumi! app, students will create sequential algorithms with a condition to move the robot on an interactive board and guide it in the maze from the Start field to the Finish field, applying a condition on the route. To do this, students will set the appropriate blocks with instructions on the interactive board in one string of characters - thus creating an algorithm - a sequence of instructions for the robot.

Exercise objectives

During this lesson, students will develop programming skills with simple conditions and debugging. The block-based form of instructions helps students understand the sequence and the idea of building program code without worrying about perfecting syntax.

Lesson plan

Duration: 45 min


Duration: 15 min

Game: I am a robot

Group exercise:

A selected person is a robot that performs simple commands from the rest of the people. The game can refer to commands in the Go Lumi! app: go right, go left, go up, go down. Establish a reference point for determining directions. Introduce new conditions to the game, e.g., If you meet a girl, greet her. If you meet a boy, turn left, etc.


Initiate a discussion about understanding, interpreting commands, including understanding conditional events - situations in which something can happen under some condition.

New concepts

repeat together Con-di-tion

A condition is an instruction that is executed only under certain conditions.

Main exercises

Duration: 25 min

Go Lumi! Level 11-20

Exercises in the Go Lumi! app dedicated to lesson no. 2: Level 11 - Level 20.

  1. Choose the simplest board appropriate for the lesson topic - Level 11 - and demonstrate the principle of working in the app with the help of students. Solve the first board together.

  2. When running the program code, call Drive + the name of your robot!

  3. Choose a convenient way to work with the group on the interactive floor:

    • Divide students into teams or pairs that will solve individual boards.
    • All teams can work in parallel, designing a sequence of instructions for the robot on a piece of paper or using self-prepared cardboard blocks. The selected team transcribes or arranges the code on the board.
    • Check together all or selected team solutions on the interactive floor.
    • Choose a person who will mimic the robot and execute commands according to the designed sequences, moving in the maze on the board. Then run the code and compare the results. If they differ, look for where the error crept in.
    • Follow the course of the robot's movement in the maze and compare it with your code on the board or on paper. In case of incorrect behavior of the robot in the maze or a different course of driving than in the students' instruction sequences, look for the cause in the code-sequence.
  4. Match the next levels of boards to the students' skills.


Not all boards from a given lesson need to be completed during the class. Solving two boards in a lesson can also be sufficient. Adjust the pace of work to the needs of the students.


Duration: 5 min

Ask students to draw or write about what they learned and what emotions accompanied them during the class.

Extended teaching

If necessary, define homework for those interested, e.g., Give examples from life where we perform some action when certain conditions are met.

Preparation for classes

  • Make sure that students have a pencil, notebook or notepad in which they can write notes, thoughts, draw.
  • If you plan to use additional work cards or other materials during the class, make sure you have enough of them for students.
  • If you plan to conduct a discussion, prepare additional questions.
  • Review the exercises before the lesson to identify potential problematic areas for your students.