Giter Site home page Giter Site logo

notyusheng / pathfinder-breadth-first-search Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25.84 MB

Simple pathfinding algorithm with Pygame GUI

Python 82.31% C 1.77% HTML 15.02% CSS 0.17% JavaScript 0.21% C++ 0.37% VBScript 0.01% XSLT 0.01% Classic ASP 0.01% PowerShell 0.12% Batchfile 0.01%
breadth-first-search pathfinder

pathfinder-breadth-first-search's Introduction

Pathfinder-Breadth-First-Search (28/02/2021)

Setup

Desktop

  1. Download and store files into folder
  2. Open command prompt in folder and run python main.py

Dimension of grid can be modified by changing "NUM_OF_GRID" constant in "constant.py"

Android Mobile

  1. Install "Pydroid 3 - IDE for Python 3"
  2. Download and run "Pathfinder (Mobile ver).py"

Dimension of grid can be modified by changing "NUM_OF_GRID" constant

Usage

Click on white tiles to create maze for algorithm to solve
Click on existing tiles to remove tiles
Hit "Enter" key to run algorithm
Solution printed on command prompt

Tile Legend

White: Blank
Red: Origin
Green: Destination
Grey: Wall
Yellow: Solution path
Blue: Search attempt

Release

Legacy GUI, improved in: https://github.com/NotYuSheng/Pathfinder-AStar

pathfinder-breadth-first-search's People

Contributors

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