Free Online Maze Game
Use arrow keys or WASD to navigate. Swipe on mobile. Reach the red goal to win.
Generating maze...
Controls
Arrow keys, WASD, or swipe on mobile. D-pad appears on touchscreen devices.
Objective
Navigate from the blue player to the red goal. Try to match the optimal step count.
Algorithm
Mazes are generated using recursive backtracking (DFS) with seeded random number generation.
How to play
A new 15×15 maze is carved out in front of you, then you press Play and find your way from the start to the goal. The counter compares your steps with the shortest possible route, and the timer shows how long you took. Stuck? Show Solution draws the shortest path; Restart gives you a brand-new maze.
Controls
Use the arrow keys or W A S D on a keyboard. On phones and tablets, use the on-screen direction pad below the maze.
Tips for solving faster
- Every maze here is a "perfect" maze with exactly one route. If you reach a dead end, go back to the last junction and take a branch you have not tried.
- Keep one hand on the wall: following the same wall all the time always leads to the exit in these mazes, even if it is not the shortest way.
- Look at the goal first and trace backwards from it. Long corridors near the goal often tell you which side of the maze to aim for.