The A-Star Pathfinding visualizer demonstrates how the A-Star pathfinding algorithm finds the most optimal path between a start cell and an end cell
Ensure that you are using Python version 3.9.6
git clone https://github.com/darreb/AStarPathfinding.git
to clone this repocd AStarPathfinding/
to access the folderpython -m venv env
to create a virtual environmentenv\Scripts\activate
to activate the virtual environmentpip install -r requirements.txt
to install all the dependenciespython main.py
to run the program
git clone https://github.com/darreb/AStarPathfinding.git
to clone this repocd AStarPathfinding/
to access the folderpython3 -m venv env
to create a virtual environmentsource env/bin/activate
to activate the virtual environmentpip3 install -r requirements.txt
to install all the dependenciespython3 main.py
to run the program
- Left-Click the Purple and Green square in order to select between your start(purple) and end(green) cells
- Left-Click on the white space in order to place either cell
- Right-Click on the white space in order to draw blocks that will block a certain path
- Left-Click the trash button to clear the space
- Left-Click the play button to run the visualizer