LA CONTEUR / CODE ANYWHERE · ACTIVITY 01

Route to the library.

Give a friend, or the computer, a set of instructions to reach the library without stepping into the pond. An ordered list of instructions is an algorithm.

Start in the bottom-left square. The library is in the top-right square. The pond blocks the centre. One instruction moves you one square: Up, Down, Left or Right.

Try it on paper

Draw the nine squares on scrap paper. Use a bean as your traveller. Read your route to a partner, one instruction at a time. If it gets stuck, change one move and test again. That’s debugging.

Show one working route

U U R R: go up the left edge, then across the top to the library. Can you find another four-move route?