Giter Club home page Giter Club logo

maze-pathfinder's Introduction

Maze Pathfinding Visualization

Actions Status forthebadge made-with-python License: MIT
Project Basis

INSTRUCTIONS TO PLAY

  • Execution of main.py would open a pygame window, where user can click on any white squares (nodes) to place a start node (in green), followed by an end node (in red)
  • User can subsequently click on any white squares to construct walls, also known as blocking nodes that can't be traversed

Pathfinding Algorithms

Option 1: Dijkstra's

  • As long as the condition of placing a start & end node is satisfied, user can press key '1' to trigger Dijkstra's shortest path
  • Turquoise nodes are nodes already traversed (looked at), while blue nodes are nodes in the process of traversing (currently being looked at)
  • Dijkstra's shortest path is completed by drawing the weighted path of traversal with purple nodes

Option 2: A*

  • As long as the condition of placing a start & end node is satisfied, user can press key '2' to trigger A* search
  • Turquoise nodes are nodes already traversed (looked at), while blue nodes are nodes in the process of traversing (currently being looked at)
  • A* search is completed by drawing the informed shortest weighted path of traversal with purple nodes

Option 3: Greedy Best-First

  • As long as the condition of placing a start & end node is satisfied, user can press key '3' to trigger Greedy Best-First search
  • Shortest path not guaranteed
  • Turquoise nodes are nodes already traversed (looked at), while blue nodes are nodes in the process of traversing (currently being looked at)
  • Greedy Best-First search is completed by drawing the weighted path of traversal with purple nodes

Option 4: BFS

  • As long as the condition of placing a start & end node is satisfied, user can press key '4' to trigger Breadth-First search (BFS)
  • Shortest path not guaranteed
  • Turquoise nodes are nodes already traversed (looked at), while blue nodes are nodes in the process of traversing (currently being looked at)
  • BFS is completed by drawing the unweighted path of traversal with purple nodes

Option 5: DFS

  • As long as the condition of placing a start & end node is satisfied, user can press key '5' to trigger Depth-First search (DFS)
  • Shortest path not guaranteed
  • Turquoise nodes are nodes already traversed (looked at), while blue nodes are nodes in the process of traversing (currently being looked at)
  • DFS is completed by drawing the unweighted path of traversal with purple nodes

maze-pathfinder's People

Contributors

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