🐞 Chapter 3: Debugging · Level 17 of 30
Level 17: Turn in the Loop
Goal: The turn is in the wrong place. The robot should turn only once. ★★★ = 5 blocks or fewer.
▶ Watch how it works
Where a block sits matters. Here the turn is inside the loop.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap or drag to add
Your program
💡 Need a hint?
Remove the “turn left” from inside the repeat, then tap “➕ add here” of the main program to add it after the loop.
What you learn here
Blocks inside a loop happen many times; blocks outside happen once. Where you put a block matters.
Chapter 3 — Debugging: Each level starts with a program that has a mistake. Run it, watch where it goes wrong, and fix it.
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.
- 🔁repeatRuns the blocks inside it again and again — tap − and + to choose how many times.