Chapter 4: Conditions · Level 23 of 30

Level 23: Side Step

Goal: Rocks block the way. Teach the robot to side-step up one row each time a rock is ahead. ★★★ = 6 blocks or fewer.

▶ Watch how it works

The else part can hold several blocks: when a rock is ahead, step up and around it.

Got it? Now solve your puzzle ↓ (a different board — work it out yourself!)

Blocks — tap to add

Your program

💡 Need a hint?

If the path ahead is free, move forward. Else: turn left, move forward, turn right.

What you learn here

The else part can hold several blocks. It runs them all, in order, when the condition is not true.

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

Chapter 4 levels