a-maze-ing disc

a-maze-ing

Python project · algorithms, terminal

Maze generator with multiple algorithms, pathfinding solvers and terminal visualization.

Open it in the console View the code on GitHub Resume (PDF) LinkedIn

The problem

Generate a valid maze from a config file, write it in a hexadecimal wall format and show it in the terminal. Built as a duo with luispais.

What I built

The hard part

A cached path that went stale. During the animated generation the terminal UI redraws its info panel and asks for the path length, so the solver ran on a half-carved maze, found no way through and cached that empty result: after animating a new maze the panel read 0 moves and showing the path did nothing. The generator now drops the cached path when each attempt starts and again once the maze passes validation, which checks matching walls, closed borders, full connectivity, no open 3x3 area and a sealed "42", and regenerates on failure.

Built with

More projects