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

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.