💎 Chapter 5: Projects · Level 28 of 30
Level 28: Gem Spiral
Goal: Every corner of the spiral has a gem. Pick each one up before you turn. ★★★ = 5 blocks or fewer.
▶ Watch how it works
Rule + loop + action: free ahead? forward. Blocked? pick up the gem and turn.
Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)
Blocks — tap to add
Your program
💡 Need a hint?
Path ahead? Move forward. Blocked? You are in a corner: pick up the gem, then turn right.
What you learn here
Combine a rule (if) with a loop (repeat until) and an action (pick up) — that is real problem solving.
Chapter 5 — Projects: Collect every gem on the way and use everything you have learnt — with the fewest blocks you can.
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.
- 💎pick up gemPicks up the gem on the robot’s square.
- ❓if path aheadIf the square ahead is free, runs the first part; if a rock or the edge is ahead, runs the “else” part.
- 🔂repeat until starKeeps running the blocks inside until the robot is on the star.