Maze Generator
Generate random mazes with recursive backtracking. Navigate with arrow keys.
Arrow keys or WASD to navigate. Blue = you, Green = exit.
Maze Generator
Generate random mazes using recursive backtracking and navigate through them with arrow keys.
How to Play
- Click Generate to create a new maze
- Use arrow keys or WASD to move (blue cell) to the green exit
- Click Solution to reveal the shortest path
- Choose different maze sizes from the dropdown
FAQ
What algorithm generates the maze?
Recursive backtracking (depth-first search), which creates perfect mazes with exactly one path between any two points.
Can I see the solution?
Click the Solution button to highlight the shortest path from your position to the exit using BFS.