Skip to content
One Quick Try

Maze Game

Find your way out of a new maze every game, from the top-left corner to the bottom right.

Type
Logic
Takes
about 1-3 min
Result in
seconds

Maze

~1-3 min

  1. Get the dot from the top-left corner to the exit at the bottom right.
  2. Each move slides along a corridor to the next turning.
  3. Every maze is new, and has exactly one route out.
Size

Arrow keys, W A S D, swipes or taps. The clock starts on your first move.

Your result: —

How it's measured
  • One Line

    Draw every line once, without lifting.~2-4 min
  • Knight's Tour

    Land a knight on every square exactly once.~2-6 min
  • Bridges

    Join the islands so each has as many bridges as its number.~3-6 min
  • Sliding Puzzle

    Slide the tiles back into order.~2-5 min
  • Number Path

    Join 1 to the last number through touching squares.~2-6 min
  • Number Link

    Join each pair of numbers and fill the grid.~2-6 min

How does the maze game work?

You start in the top-left corner and the exit is the green square at the bottom right. Arrow keys, WASD or a swipe slide you along a corridor until it turns or branches; a tap on a cell in a straight, open line moves you straight there. The clock starts on your first move, so you can look before you go.

Every maze is new, built by the game when you press Start, in a 10 × 10, 15 × 15 or 20 × 20 grid. Each one is a perfect maze: every cell can be reached and there is exactly one route between any two cells, with no loops.

How is your Maze time calculated?

Your result is your time, from first move to the exit, and an efficiency rating. Steps count every cell you pass through, dead ends and doubling back included. Efficiency compares the one route out with your steps: take the route and nothing else and it is Perfect.

Up to 15% more steps than the route is Excellent, up to 35% more is Good, and up to 80% more is Fair. The route is found by a breadth-first search over the maze when it is built, and the site's tests check that the mazes it builds are perfect and that the search finds a connected path from corner to corner.

How long is the way out?

Much longer than corner to corner. A straight run across a 15 × 15 grid would be 28 steps, but in 400 of this game's 15 × 15 mazes the route out averaged 93 steps. These mazes are built by a randomised depth-first search, the “recursive backtracker”, which makes long, winding corridors and relatively few dead ends.

MazeCorner to cornerRoute out (average)Dead ends (average)
10 × 1018 steps46 steps12
15 × 1528 steps93 steps24
20 × 2038 steps153 steps42

Figures from 400 mazes of each size, made by the game's own code with a fixed seed so they come out the same every time.

Does keeping one hand on the wall work?

Yes, in these mazes it always does. Keep your right hand (or left) on the wall and walk, and in a maze with no loops you are bound to reach the exit, because you trace round the whole maze if you have to. It is rarely quick: in the same 15 × 15 mazes the right-hand rule took 195 steps on average, about 2.1 times the route.

  • Look ahead before you move. The clock waits for your first move, so tracing a route by eye, from the exit backwards as well as from the start, costs nothing.
  • Follow the trail. The faint line shows where you have been, so you can see which branches you have already tried.
  • Dead ends are free to rule out by eye. A corridor that ends in a wall you can see doesn't need walking.

What can affect your Maze time?

Mostly the maze itself: some routes run close to the edge and some wind through the middle, so times vary from maze to maze even for the same player. Size matters most; a 20 × 20 maze has four times the cells of a 10 × 10. On a small screen the 20 × 20 corridors are narrow, so swipes or keys work better than taps there.

For another puzzle with a shortest answer, try Traffic Jam or the Tower of Hanoi.

Questions

Is there always a way out?
Yes, exactly one. Every maze here is perfect: all cells are connected and there are no loops, so there is a single route from the start to the exit.
When does the timer start?
On your first move, not when you press Start, so you can study the maze first.
Why does the dot keep going after I press a key once?
Each move slides along a corridor until it turns or branches, so a long straight run takes one press. It stops at every junction so you never skip past a turning.
Do dead ends count against me?
Only in the efficiency rating, through the extra steps. Your time is your time; the rating compares your steps with the route out.
Can I play the same maze again?
No. A new maze is built each game, so a good time comes from finding the way, not from remembering it.
What is a perfect maze?
One where every cell can be reached and there is only one path between any two cells. Mathematically it is a spanning tree of the grid, which is why the wall-following rule always works in one.