Maze Algorithms

If you're interested in maze algorithms, I've written a book about the subject: "Mazes for Programmers". Check it out!

The source code for these demos is freely available at

Recursive Backtracking

Eller's Algorithm

Kruskal's Algorithm

Prim's Algorithm

Recursive Division

Aldous-Broder Algorithm

Wilson's Algorithm

"Hunt and Kill" Algorithm

Growing Tree Algorithm

E.g. random:50, newest:30, oldest:75, middle:100, or any comma-delimited combination of those.
You must click "reset" before the maze will recognize your changes.

Binary Tree Algorithm

Sidewinder Algorithm