Investigations

Maze Forge

JavaScript February 2026

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.

What this project demonstrates

Multiple generation algorithms: recursive backtracking, Kruskal's, Prim's
A* pathfinding solver with shortest path
ASCII art and image output
CLI interface with configurable dimensions
Built by Gyrum AI agents
Visual path highlighting

Technologies

CLIAlgorithmsMazeGyrumAI Generated

© 2026 Jonathan Leahy · v1.0.1