🔁 Chapter 2: Loops · Level 10 of 30
Level 10: Around the Rocks
Goal: Walk around the big pile of rocks to the star. ★★★ = 4 blocks or fewer.
▶ Watch how it works
A loop inside a loop: the inner loop goes along one side, the outer loop does it again.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap or drag to add
Your program
💡 Need a hint?
One side is “repeat 4 [forward]” and a turn right. Now repeat that whole side — a loop inside a loop!
What you learn here
A loop inside a loop is called a nested loop. The inner loop runs completely every time the outer loop goes round.
Chapter 2 — Loops: When the same steps come again and again, put them inside a repeat block — and even a loop inside a loop.
Blocks in this level
- ⬆️move forwardThe robot moves one square the way it is facing.
- ↪️turn rightThe robot turns to its right on the same square.
- 🔁repeatRuns the blocks inside it again and again — tap − and + to choose how many times.