Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 671 Bytes

README.md

File metadata and controls

22 lines (21 loc) · 671 Bytes

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