Stairs of Any Height
The stairs are back, but each map has a different number of them. The program from the Stairs exercise had a fixed number of passes, so it would only work on one of them.
You can put more than one block in a Repeat until at the goal loop, just like in a Repeat loop. But the dog checks whether it's at the goal only before each pass, not between the blocks inside. If it reached the goal in the middle of a pass, it would still carry out the rest of the blocks, and only then would the loop end.
Here it works out: at the end of every pass, the dog stands on the next stair, and the goal is on the last one. Think about whether that would still hold if the goal were one tile further.
Instructions
Climb the stairs to the goal on all three maps.
Use at most 5 blocks.
Start programming for free
2/4