Skip to content

Using Heuristic Optimisation and the A* Algorithm to find the shortest path between two user-input points on a grid.

Notifications You must be signed in to change notification settings

AKP-13/a_star_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A* Search Algorithm

A code-along from Tech With Tim's YouTube video that uses the A* Search Algorithm to find the shortest path between two user-selected points on a grid.

Installation

  • fork and clone this repository
  • cd into repository
  • pipenv install -r requirements.txt

Instructions

  • python astar.py
  • First left-click - starting square (orange by default)
  • Second left-click - end square (turquoise by default)
  • Subsequent left-clicks - barrier squares that block off the route (black by default)
  • Right click - un-colour any square
  • Space Bar - start
  • c - restart

Start and end nodes selected with barriers

Shortest route found!

About

Using Heuristic Optimisation and the A* Algorithm to find the shortest path between two user-input points on a grid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages