Bo walks three steps along the bottom, and card 4 turns him to face the top.
On card 5, his next forward runs into the rock.
The bump shows at card 5.
Card 5 is where Bo bumps.
Example 2: Looking earlier
The bump came at card 5, but the mix-up was one card earlier.
Card 4 turned Bo to face the top while the rock was right in front of him.
Bo needed one more step along the bottom first, so the turn is too early.
Example 3: The fix
Maya slides the turn card one place later in the row.
Now Bo walks four steps, turns, and then walks two more.
He stops right on the star.
Four forwards, a turn, and two more forwards.
Example 4: Why not start again
Jonah says they could start again from nothing.
But starting from nothing throws away steps that already work.
Finding the one step that goes off is quicker.
Words to know
bug
A mix-up in the steps.
debug
To find a bug and fix it.
step
One card of the program.
run
To make the program go.
Watch out
Do not blame the robot. Bo does exactly what the steps say.
The mix-up may come before the bump, so check the cards before it too.
Change just one step at a time, so you can see which change helped.
Do not change every step at once, and do not ignore the bump and hope.
Try it
Bo bumps on card 5. Could the mix-up be on card 4?
Why run a program one step at a time?
Maya slides the turn card one place later. How many forwards come before the turn now?
Is it quicker to start again from nothing, or to find the one step that goes off?
Answers: 1. Yes · 2. It shows the step where Bo goes off · 3. 4 · 4. Find the one step
Try at homeAsk a grown-up to say three steps, one at a time, like forward, forward, turn. You are the robot and do exactly what they say. If you end up somewhere odd, go back through the steps one at a time, find the one that went off, and fix it together. Then swap jobs!
For grown-upsPlay the Mission: say three steps one at a time, like forward, forward, turn, and let your child be the robot who does exactly what you say. If they end up somewhere odd, go back through the steps one at a time, find the one that went off, and fix it together. Then swap jobs.
Open these notes on screenScan the code, or go to tutorpip.com.