This is a simple implementation of the a-star path finding algorithm in python
You should have Python and pygame installed. if not then do the following:
- Start by opening a command line. You can do this by pressing the windows key and then typing cmd and then pressing enter.
- Put in the following code into the command line:
python -m pip install pygame
After that you can import it using
import pygame
Now you can
- Clone the repo
- Run it in any code editor(SublimeText Recommended).
- Build the project ( In case of Sublime Text it is CTRL+B )
- Use your mouse to place the starting point and ending point
- You can also place walls if you want.
- Press SPACE BAR for the algo to work and find you the shortest path.
- Press C to reset and go as many times you want .:)