Skip to content

This github repo consists of 2 pathfinding algorithm, implemented in python using tkinter for visualization Dijkstra algorithm Breadth first search (BFS)

Notifications You must be signed in to change notification settings

CityIsBetter/Pathfinding-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Pathfinding Algorithms

This github repo consists of 2 pathfinding algorithm, implemented in python using tkinter for visualization

  • Dijkstra algorithm
  • Breadth first search (BFS)

Screenshots

BFS Dijkstra
screenshot of this game screenshot of this game

Installation

There are 2 ways, you can try this game yourself:

  • download the latest release version of this repo
  • clone this repo and run the py file( you need to have Python and tkinter installed)

Usage

Dikstra.py

use mouse to hover over the squares and press the following keys to perform certain actions

LMB - adds weight to the sqaure

RMB - removes weight from the sqaure

W - makes the sqaure a wall

T - set the sqaure as target block

SPACE - to start the search

BFS.py

use mouse to hover over the squares and press the following keys to perform certain actions

W - makes the sqaure a wall

T - set the sqaure as target block

SPACE - to start the search

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

This github repo consists of 2 pathfinding algorithm, implemented in python using tkinter for visualization Dijkstra algorithm Breadth first search (BFS)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages