Write one program that can solve a maze it has never seen before.
Today you will
New power · Level 10
Instead of five blocks…
…use one loop:

New power · Level 15
Now the robot can make a decision from what it senses:
if wall if pit until goal
if = react once. until = keep going until it's true.

Build this
“If there's a wall ahead, turn the same way; otherwise step forward.”

The magic ✨
Don't change a single block — run it on a brand-new maze. It still solves it!
Why? Because it's a rule, not a memorised path.

Add one rule
A complete, general maze robot in 3 rules.


We measured it — 16 mazes it had never seen
| Robot | Solved (unseen mazes) |
|---|---|
| Wall-follower + jump (3 rules) | 8 / 16 |
| Plain wall-follower (no pit rule) | 5 / 16 |
| A brain trained on one maze | 1 / 16 |
The brain memorised its one maze and gets lost everywhere else. (We'll fix that on Day 4 — train it on lots of mazes.)
New power · Level 20
Bundle steps under a name and call it whenever you need it. Your program gets shorter and clearer.

Big question 💭
Say it back in your own words. That “why” is the whole idea of an algorithm.
You did it 🎉
Next time → ⚔️ Day 3: Compete. Hand-code a fighter and a striker in the Arena.