Subscribe to Auctux
pygame : pip install pygame
In The terminal:
python main.py
- Press "Space" To start The simulation
S
-> To show node details(costs) textW
-> To Toggle Drawing wallsLeft Mouse Button
-> To Remove WallsRight Mouse Button
-> To Add WallsSpace
-> To pause and ResumeR
-> To resetEnter(Return)
orP
-> To toggle setting PanelEsc
-> To quit (close the window)
This code need a lot of refactoring , and the ui implementation is poorly done and can affect the performance
Astar algorithm in python using the pygame library,
A* is a graph traversal and path search algorithm,
which is often used in many fields of computer science due to its completeness,
optimality, and optimal efficiency. One major practical drawback is its O(b^d)
space complexity, as it stores all generated nodes in memory.