profjefer / a-star-visualizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A* visualization with interactive controls

Script visualizing A* pathfinding algorithm with interactive window where you can add walls and mode nodes.

Running

Requires python >= 3.7 and pygame module. install pygame with:

pip install pygame

run the script with:

python a-star-visualizer.py

After running you will be prompted to enter size of cells in grid. You can press enter to go with defaul value.

Controls:

  1. space - start finding the path or pause finding (when paused press esc to abort finding or space to resume it )
  2. c - clear the board, and walls
  3. p - clear path
  4. s - switch start and target node
  5. esc - leave

About

License:MIT License


Languages

Language:Python 100.0%