Skip to content

flintlouis/AStarPathfinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A* Pathfinding

A* pathfinding algorithm using Pygame

Install Pygame

Use the package manager pip to install Pygame

python3 -m pip install -U pygame --user

Run

python main.py

Controls

LeftMouse - select starting point

RightMouse - select ending point

Space - blank grid

1-6 - randomize grid with obstacles with different density

Enter/Return - start/restart algorithm if both start and end point have been selected

T - switch between manhatten(taxi) and euclidian distance

Up/Down arrows - change speed of program

About

A* pathfinding algorithm using Pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages