Maze
Guide the red dot from the top-left corner to the green square. Every maze is new, and every maze has exactly one path.
Use the arrow keys, swipe on the maze, or tap the buttons.
How to play
You are the red dot in the top-left corner. The exit is the green square in the bottom-right corner. Move with the arrow keys (or W, A, S, D) on a computer, swipe across the maze on a phone, or use the buttons below it. The squares you have visited turn light blue, so you can see where you have already been.
Maze-solving methods
- Follow one wall. Keep one hand on the right (or left) wall and never let go. In a maze like this one, where every path connects, you will always reach the exit.
- Work backward. Look at the exit and trace the path back toward the start with your eyes before you move.
- Spot dead ends. Short side passages that end quickly are usually traps. Ignore them.
How the mazes are made
Each maze is built by the computer in a fraction of a second using a method called a “depth-first” search. It wanders from square to square, knocking down walls, and backs up whenever it gets stuck. The result is a “perfect maze”: every square can be reached, and there is only one route between any two squares, with no loops.
Mazes through history
People have drawn mazes and labyrinths for thousands of years, on clay tablets, floors of churches and hedge gardens. Today they remain a favorite puzzle for children and adults, because the goal is simple and the path is not.
Fun facts about mazes
- Maze or labyrinth? Today the words are often mixed up, but a classic labyrinth has a single winding path with no choices, while a maze has branches and dead ends.
- Hedge mazes. Garden mazes made of tall hedges became fashionable in Europe in the 1600s and 1700s. The maze at Hampton Court Palace near London, planted in the 1690s, is still open to visitors.
- Mice and mazes. In the early 1900s, scientists began using simple mazes to study how animals learn. Many famous experiments about memory started this way.
- Computers love mazes. Building and solving mazes is a classic exercise for students learning to program, because the same ideas help computers find routes on maps.
Frequently asked questions
Does the wall-follower trick always work?
In every maze on this page, yes, because all paths are connected and there are no loops. In mazes with loops or a goal in the middle, following one wall can send you around in circles.
Is there only one way out?
Yes. These are "perfect mazes," so there is exactly one route from the start to the exit. Every other path ends in a dead end.
Are mazes good for children?
They are a great way to practice planning and patience. Younger children often enjoy tracing the route with a finger before moving the dot.
You might also like
- Four in a Row: plan ahead against the computer
- Word Search: find hidden words in a letter grid
- Lights Out: switch every light off