Visualize the difference between different path finding algorithms
- Clone it
git clone https://github.com/ihammadasghar/path-finder.git
cd path-finder
- Make a virtual environment
python -m venv venv
- Activate it
venv\scripts\activate
- Download requirements
pip install -r requirements.txt
- Run Path Finder:
python program.py
NOTE: If the python/pip commands don't work for you try python3
and pip3
or py
(python version issues)
- Specify Start & End node
- Mouse drag - build walls around the nodes
- SPACEBAR - Begin search for path
You can also try it on gitpod, but not recomended:
Searches nodes around it putting the least costing nodes high in priority
searches nodes around it while also having a sense of direction towards the end, takes into account the distance to the end node while as well as the cost while prioritizing.
If you'd like you could play around with more advanced settings of the program, following settings can be played around with in settings.py.
- Dimensions (Rows, Cols)
- Diagonal Node cost (Changing node cost will effect prioritizing of the algorithm and makes it take interesting paths)
- Adjacent Node cost
- Width & Height of the screen