LoipesMas / a-star-demo

A* search algorithm demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A* search algorithm demo

About A*

A* is a graph traversal and path search algorithm. It's often used in many fields of computer science (e.g. in video games). It's simple and easy to understand.

Demo

This is my implemantation of this algorithm, based on pseudo-code from this wikipedia page. screenshot of demo

Requierements

Only module required is pygame. pip install pygame

Usage

Run with python main.py.

Use LMB to draw impassable walls, RMB to remove them, s to place starting point, g to place goal.
r to start pathfinding. To restart press any of the above.

About

A* search algorithm demo


Languages

Language:Python 100.0%