Git Product home page Git Product logo

astar-pathfinding's Introduction

A start pathfinding visualiser in python.

This is the first attempt I implemented the a-star pathfinding algorithim, I created the visualiser with pygame. Although Big props to @Techwithtim for having an amazing tutorial on the algorithim.

Basic Controls

You must create a map to start the pathfinding! The start node is orange, end node is turqoise and the walls/drawing are black.

To create nodes:

  • Left click (Create the start node with left click, Then the end node with left click)

To delete nodes

  • It is the same as creation, Except right click!

Note: Unfortunately My algorithm does not support diagnol path finding, Only non diagnol path finding.

A start pathfinding visualiser in python.

This is the first attempt I implemented the a-star pathfinding algorithim, I created the visualiser with pygame. Although Big props to @Techwithtim for having an amazing tutorial on the algorithim.

Basic Controls

You must create a map to start the pathfinding! The start node is orange, end node is turqoise and the walls/drawing are black.

To create nodes:

  • Left click (Create the start node with left click, Then the end node with left click)

To delete nodes:

  • It is the same as creation, Except right click!

Colors

Each color represents something in the program.

  • Red (Checks if its closed if the color is read)
  • Green (If open the color is green)
  • Black (if there is a barrier for the path it will be black)
  • Turqoise (Represents the end of the path finding, this will show up if that path gets found)
  • White (Represents if the path is reset)

This list isn't exhaustive, But shows the most important colors.

Note: Unfortunately My algorithm does not support diagonal path finding, Only non diagonal path finding.

https://github.com/andrewnijmeh/astar-pathfinding/blob/main/Screenshots/screen.gif

a project by Andrew Nijmeh.

astar-pathfinding's People

Contributors

andrewhummus avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

dashbaord202401

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.