Skip to content

Flexible A-star visualizer with custom obstacle and path creation tools.

Notifications You must be signed in to change notification settings

Tjofil/A-star_algorithm_interactive_visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

A* algorithm interactive visualization

A visual simulation of popular algorithm using custom, distance based heuristic.

Image

Running

Aside from Python, third-party modules required to run the program are pygame and tkinter which can be obtained with pip by the following command:

pip install pygame tk

Usage and features

Execution flow of the simulator itself is composed of three main parts:

  • Obstacle editor where user is able to define custom obstacles (unpassable terrain) for grid traversal simply by using left mouse click and hold similar to painting brush.
  • Starting and ending node setup covers simple selection of the start and goal of the algorithm.
  • Simulation and post-simulation phase displays the traversal and search itself, step-by-step in a visually pleasing way.

Keyboard controls:

Spacebar - used to progress between each phase.

R - available only while choosing the starting and ending vertices to reset the process.

Image

About

Flexible A-star visualizer with custom obstacle and path creation tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages