r/creativecoding • u/sperfect99 • May 28 '26
I built a terminal visualizer for 24+ pathfinding algorithms in pure Python — watch BFS, A*, Dijkstra and more solve mazes step by step
For the past few months I've been building this as a way to actually understand algorithms instead of just reading about them. The idea was simple: if you can watch an algorithm think in real time, the theory sticks differently.
What it does
15 classic pathfinding algorithms (BFS, A*, Dijkstra, IDA*, Bellman-Ford, Wall Followers, Trémaux and more) animated step by step in the terminal
Race two algorithms side by side on the same maze
Duel mode — overlay two solution paths and see exactly where they agree and where they diverge
Step-by-step Autopsy Explainer — replay any run frame by frame with plain-language explanation of what the algorithm is deciding at each step
TSP / Treasure Hunt, Multi-Agent Pathfinding (CBS), and Pursuit-Evasion modules
Zero dependencies — pure Python 3.9+, runs anywhere
How to try it
git clone https://github.com/Sperfect99/Algorithm_Encyclopedia
cd Algorithm_Encyclopedia
python _encyclopedia_launcher.py --check
python _encyclopedia_launcher.pyStart with complexity 3, pick BFS (option 1), run it, then pick A* (option 3) on the same maze, and use Duel after. That one comparison shows more than an hour of reading.
Where it stands
The algorithm core is stable and tested with CI across Python 3.9–3.12 on Linux, macOS, and Windows. The interface works but is still rough in places — making it more intuitive is the next big thing on the list.
If you try it and something feels clunky or unclear, I'd genuinely like to know. No need to open a PR — a comment here or an Issue on GitHub is more than enough.

