Rullst AcademyRullst Academy/Lesson
Robotics: Tico’s garden · Lesson 04 / 06

Repeat with care

Tico will carry seeds through a clear passage. Repeating a small group of commands can make the plan easier to read.

Learning paths6 min

Let's discover together

  1. 1

    A loop repeats instructions. “Repeat 3 times: move forward 2 steps” makes three groups of two steps, if all are allowed.

  2. 2

    Expanding the loop helps check it: 2 + 2 + 2. The number of repetitions differs from the total number of steps.

  3. 3

    In our model, check the sensor before each step. If the rule says stop, interrupt the route even if repetitions remain.

✦
YOUR MISSION

Count moves in a bounded repetition and recognize when repetition should stop.

Now it's your turn

Discovery workshop

Repeat with care

Scenario A: repeat a group of 2 steps 3 times; all steps are allowed. Scenario B: the next reading says stop.
Build your answers and check when you are ready.
A moment to understand

In scenario B, should Tico finish the loop at any cost?

I need a hint

A repetition does not cancel the stopping condition.

Loading your journey…

Take it with you

Draw three groups of two arrows. Mark a barrier before the fourth arrow and count how many steps could happen before it.

At your own pace

My files and GitHub

Every lesson can become your own record: code, notes or a practice plan. Saving a file to GitHub is optional and does not change your XP.

Student guide

The editor and downloads open when this lesson is available to your account. Check access below or return to the track map.

Checking your access to this lesson…

Rullstpetbot

AI can make mistakes. Check the lesson material.