Teaching article
Trace a program through its intermediate states
Predict intermediate states rather than only the destination.
A correct endpoint can conceal an incorrect route along the way. Record the token's square and heading after each command, then compare that predicted trace with execution to locate any difference precisely.
Include heading as well as square in each trace. A token can occupy the correct square while facing the wrong way for the next command.
Include orientation in every trace row
- Record the starting state.
- Trace after each command.
- Compare with execution.
A correct final square can hide an incorrect intermediate route.
Include heading as part of state.
Which trace row differs? Use a pre-drawn table.
Resources
- Draw the Robot’s Grid Route – Open-Ended Drawing Worksheet — Use the route drawing as a spatial planning prompt; add your command key separately.
Further reading
- CS Unplugged — Kidbots and algorithm activities
- Australian Curriculum Version 9 — Technologies overview
Read next
- Five squares can require only four moves
- Toggle and set-on are different instructions
- A decision tree needs a path for every permitted input
Explore Coding and computational thinking. Browse all teaching articles.
