Skip to main content

A* Pathfinding Algorithm - 2.0

Simple implementation of the A* pathfinding algorithm using pygame.

Canio Massimo Tristano
This is a A* pathfinding algorithm demo working with pygame.

Just run the file.

Red cell means it's in the CLOSED list, green in the OPEN list (cells still to check). The numbers in cells are g (the cost), h ( the heuristic) and f ( the total score, f = g + h).

Thanks and enjoy.


A lot of improvements and new features as the possibility to animate the pathfinding algorithm.


Home Page


A* Pathfinding Algorithm 1.0 — 10 Jun, 2008

A* Pathfinding Algorithm 2.0 — 11 Jun, 2008

A* Pathfinding Algorithm 2.2 — 8 Jul, 2008 account Comments

  • Şahin Mersin 2011-05-25 21:40:52

    very good

  • Real name 2017-08-30 13:17:42.143559

    the page isn't working
  • Fabian 2020-10-16 14:31:27.307610

  • Fabian 2020-10-16 14:31:49.087304