Visual demonstrations of common algorithms using Python
- Python3
- Pygame
python -m pip install pygame
- Pygame Widgets
python -m pip install pygame_widgets
Navigate to the A Star directory and run the command
python astar.py
-
Left click and drag to draw obstacles (black)
-
Right click once to select the start node
-
Right click a second time to select the end node
-
Press backspace to undo a selection
-
Press enter when ready to begin the algorithm