Implementing path finding algotirthms visualization on a grid using "pygame" library
pip install pygame
pip install termcolor
- BFS
- DFS
- A*
- UCS
- GBFS
main.py
- Left mouse click on the grid to set start and end
- Every click after setting start and end will create a wall
- Right click to clear the node spot
- To choose the algorithm simply press it's respective intial letter on the keyboard
i.e
- B → BFS
- D → DFS
- A → A*
- U → UCS
- G → GBFS
- R → Reset the grid while keeping start, end and walls
- C → Clear the grid
- 1 → Load preset 1
- 2 → Load preset 2
- 3 → Load preset 3
- 4 → Save preset 1
- 5 → Save preset 2
- 6 → Save preset 3