❓ Chapter 4: Conditions · Level 22 of 30
Level 22: Endless Stairs
Goal: Climb the long staircase without counting the steps. ★★★ = 5 blocks or fewer.
▶ Watch how it works
Stairs again — but this time the loop runs until the star, without counting.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap to add
Your program
💡 Need a hint?
One step is forward, left, forward, right. Put it inside “repeat until star”.
What you learn here
“Repeat until” keeps going round until the goal is reached — useful when you do not know how many times.
Chapter 4 — Conditions: Teach the robot to decide for itself: keep going until the star, and turn only when the path is blocked.
Blocks in this level
- ⬆️move forwardThe robot moves one square the way it is facing.
- ↩️turn leftThe robot turns to its left on the same square.
- ↪️turn rightThe robot turns to its right on the same square.
- 🔂repeat until starKeeps running the blocks inside until the robot is on the star.