Git Product home page Git Product logo

a--star-path-finding-visualizer's Introduction

A-star-path-finding-Visualizer

This is a python Application for visualizing A-star path finding algorithm where users can choose source and destination node and positions of obstacles in between. A star algorithm is implemented from scratch using manhattan distance as hueristic distance, with a light weight GUI developed in pygame to visualize the process of path finding with final computed shortest path . It can also be used for visualizing other path finding algorithms on a grid.

For running the tool , pygame needs to be installed if not already present. which can be done using the following commands.

For linux/Windows
$ pip install pygame
For mac
$ pip3 install pygame

or

$ python -m pip install pygame

After succesfully installing pygame run this application with

$ python astar_visualizer.py

Now follow the steps below for interacting with pygame GUI

Steps for interacting with gui

  • Choose start node by right clicking on it (appears orange)
  • similarly choose end node ( appears blue)
  • similarly choose all the obstacle nodes (appear black)
  • Press space bar to see the algorithm in action (at the end shortest path is displayed in purple)
  • use CTRL + C to reset the window

a--star-path-finding-visualizer's People

Contributors

shoryak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.