A maze generator and solver CLI tool with multiple algorithms and visual output. Built by Gyrum.
Maze Forge generates and solves mazes using different algorithms. It's a CLI tool — give it dimensions and an algorithm choice, and it produces a maze with an optional solution path highlighted.
The generation algorithms include recursive backtracking, Kruskal's, and Prim's — each producing mazes with different characteristics. Recursive backtracking creates long winding corridors, Kruskal's tends toward more uniform branching, and Prim's produces mazes that radiate from a starting point.
The solver uses A* pathfinding to find the shortest path from entrance to exit. Visual output renders the maze as ASCII art in the terminal or as an image file. Another [Gyrum](/investigations/gyrum) project — the AI agents chose the algorithms and implemented the whole thing.