How grotoo/a-maze-ing-project works
A-Maze-ing is a configured maze generator with an interactive terminal viewer. The workflow reads and validates configuration, generates a perfect or loop-rich playable maze, exports its hexadecimal representation and solution, then renders it with controls to regenerate, reveal the path, or rotate colours. The reusable generation package also provides the maze model, shortest-path solving, and optional isolated “42” pattern. Generator internals are combined because the sampled source places these capabilities in one module; rendering and export call maze methods directly. Unshown details are limited to README-documented capabilities.
Main entry points: controller.py Interactive controller · generator.py Maze generation · a_maze_ing.py CLI entrypoint · maze_exporter.py Hex exporter
Components 14
Application
- CLI entrypoint
a_maze_ing.py - Config parsing
src/config_parser.py - Interactive controller
src/controller.py - Application errors
src/errors.py
Maze core
- Maze model
mazegen/generator.py - Maze generation
mazegen/generator.py - Playable loops
mazegen/generator.py - 42 pattern
mazegen/generator.py - Shortest path
mazegen/generator.py
Output
- ASCII renderer
src/ascii_renderer.py - Hex exporter
src/maze_exporter.py
Other components
- Terminal user
- Config file
- Maze output file
Connections 15
- Terminal user → CLI entrypoint: runs CLI
README.md - CLI entrypoint → Config parsing: loads config
a_maze_ing.py - Config file → Config parsing: reads settings
README.md - CLI entrypoint → Interactive controller: starts session
a_maze_ing.py - Interactive controller → Maze generation: generates maze
src/controller.py - Maze generation → Maze model: creates maze
mazegen/generator.py - Maze generation → Playable loops: adds loops
mazegen/generator.py - Maze generation → 42 pattern: places pattern
mazegen/generator.py - Interactive controller → Hex exporter: exports maze
src/controller.py - Interactive controller → ASCII renderer: renders maze
src/controller.py - ASCII renderer → Shortest path: gets path
src/ascii_renderer.py - Hex exporter → Shortest path: gets path
src/maze_exporter.py - Hex exporter → Maze output file: writes file
src/maze_exporter.py - Interactive controller → Terminal user: shows controls
src/controller.py - Interactive controller → Application errors: handles errors
src/controller.py