Skip to content

mjschwarz/pathfinding-visualization-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pathfinding Visualization

Description

This program allows the user to select a pathfinding algorithm and place the starting and ending positions as well as obstacles. Then, the searching process is visualized and the resulting path is displayed.

Functionality

To Run This Program:

  • Open your terminal
  • Enter into the directory where you store your projects
  • Clone this repository:
git clone https://github.com/mjschwarz/PathfindingVisualization.git
  • Enter into the projects directory
  • Download the required modules:
python3 -r requirements.txt
  • Run the program:
python3 main.py

How To Use:

  • Select an algorithm when prompted
  • Place blocks using your left mouse button
    • Place the starting block (blue)
    • Place the ending block (red)
    • Place obstacles (black)
  • Remove any undesired block using your right mouse button
  • Run the visualization by pressing the space bar
  • After the run has finished, clear the screen by pressing the 'c' or 'delete' key

Example Output

A* Search Algorithm

A*

Breath-first Search Algorithm

A*

Depth-first Search Algorithm

A*

About

Visualizes the searching process of a user-created environment using A*, BFS, and DFS search algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages