Learn A* (A-star) Algorithm in Python — Code An AI to Play a Game

Josiah Coad
7 min readNov 28, 2022

In this article, we are going to discuss a planning algorithm that’s still used widely in the industry (eg in robotics), has great theoretical guarantees, and can be used as a baseline for many other more complex algorithms (ie reinforcement learning). Say hello to A* :)

(Pss — My video version of this article is now available on youtube)

Simply put, A* is an algorithm for finding the shortest path between some start node and end node.

A* Application Examples

--

--