Answer: Maze 6

The answer to maze 6, with the route from Pixel to the fish drawn as an orange line.

Here is the way through Maze 6. The orange line shows Pixel’s route from the top-left corner to the fish.

The solved maze 6 with the route drawn as an orange line.
The one true route through maze 6.

The route as arrow code

Each arrow is a direction and each number is how many squares to move. The whole route is 26 moves long and has 18 turns.

↓ 1  → 2  ↑ 1  → 1  ↓ 1  → 1  ↑ 1  → 1  ↓ 3  ← 1  ↑ 1  ← 2  ↓ 1  ← 1  ↓ 2  → 2  ↑ 1  → 2  ↓ 1
Show the route step by step
  1. Go down 1 square.
  2. Go right 2 squares.
  3. Go up 1 square.
  4. Go right 1 square.
  5. Go down 1 square.
  6. Go right 1 square.
  7. Go up 1 square.
  8. Go right 1 square.
  9. Go down 3 squares.
  10. Go left 1 square.
  11. Go up 1 square.
  12. Go left 2 squares.
  13. Go down 1 square.
  14. Go left 1 square.
  15. Go down 2 squares.
  16. Go right 2 squares.
  17. Go up 1 square.
  18. Go right 2 squares.
  19. Go down 1 square.

How would a computer solve this maze?

Computers solve mazes with an algorithm, a set of exact steps. One famous trick is called breadth-first search. The computer looks at every square one step from the start, then every square two steps away, then three, a bit like ripples spreading out when you drop a pebble in a pond.

When a ripple reaches the goal, the computer traces back the way it came. Because the ripples spread out evenly, the route it finds is always the shortest one. That’s how the orange line above was worked out!