Teaching article

Five squares can require only four moves

Compare required moves with squares counted.

Start on the first square of a straight five-square path and count the transitions to the last. The difference between squares visited and moves executed makes a common extra-command error visible.

Moving from square one to square five takes four forward moves.

Count crossed boundaries, not the starting square

Mark start and goal. Count transitions. Test the commands.

Count transitions between adjacent squares rather than the number of squares shown. This makes the source of the extra command visible.

How many boundaries were crossed? Trace with a finger.

Counting the start as a move adds an error.

Resources

Further reading

Read next

Explore Coding and computational thinking. Browse all teaching articles.