Architectural puzzle workshop
GRID 20×20SEED 505DFS · PERFECT
Puzzle Workshop / 01
Maze Generator
Create custom maze puzzles, choose your preferred size and generation algorithm, reveal solutions, and download or print your own mazes.
Inside this maze
Difficulty labels are approximate. Seeds use Mulberry32 (not cryptographic). Generation time is measured on this device. The domain name is not the topic of the site.
03
Ready-to-use maze presets
Each thumbnail is generated from a fixed seed by the same engine as the workshop above.
04
Circular maze generator
Polar rings and angular sectors, not a stretched rectangle. Outer rings can subdivide. SVG arcs draw ring walls; radial segments draw sector walls. Open only the matching child-sector arc when a radial passage exists.
Example: 5 rings, 8 base sectors, subdivision interval 2, seed 1414 (Spiral Workshop).
Open circular workshop05
Hexagonal maze generator
Axial coordinates (q, r) with s = −q − r. Neighbors: (1,0), (1,−1), (0,−1), (−1,0), (−1,1), (0,1). Board radius R includes cells with max(|q|, |r|, |q+r|) ≤ R. Radius 4 has 61 cells. Pointy-top: x = a√3 (q + r/2), y = a·3/2·r.
Open hexagonal workshop06
Play a maze online
Arrow keys and WASD when the maze is focused. On-screen pads work on every topology. Invalid wall bumps do not move the player or increment the move counter. Hints are shortest routes from the current cell. Timer excludes pauses. Completion requires occupying the goal cell.
07
Automatic maze solver
Breadth-first search finds a shortest unweighted route. Iterative depth-first search finds a valid route. In a perfect maze both reconstruct the same unique simple path; exploration order can differ. The solver works on generated mazes and validated Maze Foundry configuration files, not photographs.
08
Maze algorithm laboratory
Animations emit events from the live generators: stack backtracks, frontier edges, Kruskal merges, loop erasures. Identical seeds do not imply identical random streams across algorithms. Compare measured dead ends, junctions, solution length, and generation duration on this device.
09
Printable maze worksheet builder
Each puzzle seed is derived from a master seed and index. Answer sheets reuse those graphs. US Letter or A4, portrait or landscape. Dense layouts can make passages too small to draw through.
10
Maze customization reference
Colors and wall thickness redraw the current maze without changing topology. Seeds use Mulberry32; text is hashed with FNV-1a. This is not cryptographic randomness. Generator version 1.0.0 is stored in exported configuration files.
11
How maze generation works
Every maze is an undirected graph. A cell is a vertex. An open passage is a reciprocal edge. A wall is a missing adjacency. Perfect mazes are spanning trees: N − 1 internal passages and no cycles. Braided mazes process a percentage of initially identified dead ends and may add cycles. Independent cycle count for a connected graph is E − V + 1. Entrance and exit openings on the outer boundary are not internal edges.
Four generators share that graph: randomized depth-first search (iterative recursive backtracker), randomized Prim, randomized Kruskal with union-find, and Wilson’s loop-erased random walks. See the maze guide and the algorithm article.
Maze-solving techniques
Systematic backtracking, marking visited junctions, and breadth-first exploration all work on these graphs. Wall following (right-hand or left-hand) is not guaranteed on every topology, especially braided mazes and polar or hexagonal connectivity. The interactive solver uses BFS or DFS on the graph. A hint is a shortest path from the player’s current cell, not a leftover fragment of the original start-to-goal route.
12
Frequently asked questions
Fifteen answers cover free generation, perfect mazes, seeds, printing, circular and hexagonal grids, SVG download, and local processing.
14
About and contact
Maze Foundry is an independent browser-based resource operated by Sydni Gaspard, 2929 Lee Dr, Pierre Part LA 70339. Email [email protected]. No telephone number is published. The domain name is not the topic of this site and does not imply agricultural content.