Algorithms
How a maze is built
A maze in this workshop is a graph: cells are vertices and open passages are undirected edges. Perfect mazes are spanning trees. For N cells they contain exactly N − 1 passages, stay connected, and contain no cycles. No single generator is universally better; each biases corridor shape differently.
Randomized depth-first search (recursive backtracking) uses an explicit stack. It often carves long winding corridors because it walks forward until it must backtrack. Randomized Prim grows from a frontier of candidate edges and can look bushier. Randomized Kruskal shuffles every neighboring pair and accepts an edge only when a disjoint-set structure shows the cells are still in different components.
Seeds are hashed with an FNV-1a style mix that includes generator version 1, then fed to a Mulberry32-style generator. That stream is not a cryptographic random source. It exists so the same settings reprint the same puzzle. Try the methods on the maze generator or read the longer article Maze Generation Algorithms Explained.