Teaching article

An arrow route is an algorithm only when the commands are clear

Represent an ordered set of instructions for a defined task.

Give the token a start, a goal and an agreed command key. The order matters, but so does the meaning of each instruction; two readers cannot test the same program if they interpret its arrows differently.

Write the command meanings beside the grid. An ordered sequence is executable only when the interpreter understands the same rules as the author.

Define the interpreter's rules

  1. Mark start and goal.
  2. Arrange commands.
  3. Execute in order.

Forward then turn produces a different route from turn then forward.

Define each command precisely. Did order affect the outcome?

Move a token instead of a person.

Resources

Further reading

Read next

Explore Coding and computational thinking. Browse all teaching articles.