A perfect maze, every time
A recursive backtracker algorithm carves passages through a grid of cells, visiting every cell exactly once. The result is a "perfect" maze with exactly one path between any two points, so it is always solvable.
Generate a random maze, then race to guide your dot from start to finish. Pick a size, move with arrow keys or WASD, and reveal the shortest path if you get stuck.
Use the arrow keys or WASD to move from the green start to the red finish. On touch screens, tap any open cell next to your dot to step into it.
A recursive backtracker algorithm carves passages through a grid of cells, visiting every cell exactly once. The result is a "perfect" maze with exactly one path between any two points, so it is always solvable.
Move your dot with the arrow keys or WASD. Passages only open where a wall was actually removed, so there is no cheating through a wall. On touch devices, tap an adjacent open cell to step into it.
Use Download PNG to save the current maze image straight from your browser. The saved image is ready to print, drop into a worksheet, or share with a friend to race against.
Yes. Every maze is carved with a recursive backtracker algorithm that creates a single spanning path through the whole grid, so there is always exactly one route between the start and the finish.
Move with the arrow keys or WASD on a keyboard, or click or tap any open cell next to your current position with a mouse or touchscreen.
No. Best times are stored only in your browser's local storage on this device. Nothing is uploaded to a server or shared elsewhere.