Re:Show HN: Visual a* Pathfinding and Maze Generation in Python
by szykbi on Monday August 05, 2024 @02:45PM
(#41164112)
I suggested OOP because its a baseline for readability. Also your code has at least 1 class already lol. Defending having everything in one file for a project like this is a bit unbelievable.
Re:Show HN: Visual a* Pathfinding and Maze Generation in Python
by uncivilized on Monday August 05, 2024 @06:18PM
(#41166138)
It is LLM generated code so I imagine it would be more work to create any semblance of a proper Python package structure.
Re:Show HN: Visual a* Pathfinding and Maze Generation in Python
by dietr1ch on Tuesday August 06, 2024 @02:05AM
(#41168203)
You wanted educational visualizations and you got them, but keeping the code organized to allow students to inspect it seems way more important than optimizing, especially if you are already using a slow language.
In any case, this project is about making cool looking and educational animations of a pathfinding algorithm and generating interesting and diverse mazes to test it on. Not about making some amazing and modular reusable system.