Skip to content

I am trying to implement *a path finding algorithm and create a visualization of it with Python and numpy library

Notifications You must be signed in to change notification settings

Klihe/AStar-Visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AStar-Visualization

I am trying to implement *a path finding algorithm and create a visualization of it with Python and numpy library

Requirement

Install requirements

MacOS/Linux

pip3 install pygame
pip3 install numpy

Windows

pip install pygame
pip install numpy

Run

MacOS/Linux

python3 main.py

Windows

python main.py

Controls

exit window - esc

selecting of color - arrow up, arrow down

drawing state - 1
calculating state - 2
final result - 3

Drawing

_

  • Black = barriers
  • Yellow = start
  • Blue = end

Calculating

_

value (left) - distance from start
value (right) - distance from end value (center) - distance start + end

Final result

_

Display the optimal route from the starting point to the ending.

About

I am trying to implement *a path finding algorithm and create a visualization of it with Python and numpy library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages