/Pathfinding-Visualisation

Pathfinding Visualisation

Primary LanguagePythonMIT LicenseMIT

pathfinding-visualisation-pygame

Shows visually how the A* pathfinding algorithm works

Prerequisites

math and pygame

Installation

  1. Clone the repo
    git clone https://github.com/Ollie-Edwards/pathfinding-visualisation-pygame.git
  2. Install PIP packages
     pip install math
     pip install pygame
  3. CD into the project file
    cd pathfinding-visualisation-pygame
  4. Run the program
      python main.py

How to use

  • Right click once to place the start node
  • Right click again to place the end node
  • After placing the start and end node, any further right clicks will create barrier nodes
  • Left click to remove unwated barrier nodes
  • Press space to start the visualisation