Our robot only does what we press. So if it goes the wrong way, who has the bug?
Watch with the cards: the arrows in order are the program. A wrong arrow is a bug. The same arrow more than once is a short repeat, like three forwards.
Today we will send the robot on a longer route with a turn and a repeat, predict where it stops, and fix any bug.
Watch the robot on the mat. Where do you think it will stop? Call out your prediction before we press Go.
Watch the robot on the grid on the board. Your job is to call out the next step and watch the run. I will put the arrows in order and press Run.
For the first challenge, use 6 steps or fewer. If the robot misses the goal, say where the bug is and which step we should change.
In your group, plan a route from start to finish with arrow cards. It needs a turn and a short repeat (the same step more than once, like forward, forward, forward).
Say your program in order and predict where it will stop. On your turn, run it. If it misses, fix one step and try again.
If you are waiting, keep working on your card plan at your desks until your turn.
On your Investigation Journal page, record the working program in order, the bug you found, and how you fixed it.
You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.