Script visualizing A* pathfinding algorithm with interactive window where you can add walls and mode nodes.
Requires python >= 3.7 and pygame module. install pygame with:
pip install pygame
run the script with:
python a-star-visualizer.py
After running you will be prompted to enter size of cells in grid. You can press enter to go with defaul value.
- space - start finding the path or pause finding (when paused press esc to abort finding or space to resume it )
- c - clear the board, and walls
- p - clear path
- s - switch start and target node
- esc - leave