Skip to content

A Python program to implement and visualize A-star Path Finding Algorithm interactively.

License

Notifications You must be signed in to change notification settings

saif191020/Astar-Pathfinding-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Astar Path Finding Visualizer

A Python program to implement and visualize A-star Path Finding Algorithm interactively.

About the Algorithm

A-star (also referred to as A*) is one of the most successful search algorithms to find the shortest path between nodes or graphs. It is an informed search algorithm, as it uses information about path cost and also uses heuristics to find the solution.

Running The code

A-star

  • Click on the blocks to place the start point/end point/walls
  • Press space to start the algorithm
  • Press c to clear all blocks
  • press left click to remove one block
  • The algorithm can run in one of two modes with Visualizer and without Visualizer
    • with Visualizer mode is the one seen above in gif
    • without Visualizer will find the path (blue line) without showing how it works and is almost instant

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Things you need to run the code

Python 3

Installing

Follow These Instruction.

Install pygame package

pip install pygame

Built With

  • Python 3 - The Programming Language used.
  • PyGame - Pygame is a cross-platform set of Python modules designed for writing video games.
  • Tkinter - Tkinter is Python's de-facto standard GUI (Graphical User Interface) package.

📃 License

This project is licensed under the MIT License - see the LICENSE file for details


Feel free to star ⭐ this repository if you like what you see 😉.

About

A Python program to implement and visualize A-star Path Finding Algorithm interactively.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages