Giter Site home page Giter Site logo

morbitz / astar-visualization-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from josephbakulikira/astar-visualization-python

0.0 0.0 0.0 68 KB

Astar Visualization with pygame python

Home Page: https://www.youtube.com/c/Auctux

Python 100.00%

astar-visualization-python's Introduction

Astar-visualization-python

Subscribe to Auctux

Requirements

pygame : pip install pygame


Run

In The terminal:
    python main.py
    
- Press "Space" To start The simulation

Controls (Commands)

  • S -> To show node details(costs) text
  • W -> To Toggle Drawing walls
  • Left Mouse Button -> To Remove Walls
  • Right Mouse Button -> To Add Walls
  • Space -> To pause and Resume
  • R -> To reset
  • Enter(Return) or P -> To toggle setting Panel
  • Esc -> To quit (close the window)

bugs- Unsolved issues

This code need a lot of refactoring , and the ui implementation is poorly done and can affect the performance


About

    Astar algorithm in python using the pygame library, 
    A* is a graph traversal and path search algorithm, 
    which is often used in many fields of computer science due to its completeness, 
    optimality, and optimal efficiency. One major practical drawback is its O(b^d) 
    space complexity, as it stores all generated nodes in memory.

Screenshot (233) Screenshot (234) Screenshot (218) Screenshot (216) Screenshot (220) Screenshot (219)

astar-visualization-python's People

Contributors

josephbakulikira 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.