Teaching article

The same commands can finish differently from different starts

Show how identical commands can produce different results from different starts.

Place two tokens on different squares or headings and run an unchanged sequence. The contrast shows why starting position and orientation belong in a complete program task, not merely in the author's memory.

Forward-right-forward depends on the initial heading and square.

Preserve the commands while changing the start

Run the sequence without changing the commands between trials. This isolates the effect of the initial position and orientation.

Set different starts. Run the same sequence. Compare final states.

Commands alone may not specify a whole task. Which starting detail changed the outcome?

Compare two prepared diagrams.

Resources

Further reading

Read next

Explore Coding and computational thinking. Browse all teaching articles.