Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A little python project to visualize path finding algorithms

License

Notifications You must be signed in to change notification settings

matihope/visual_path

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Path

A little python project to visualize path finding algorithms.

alt text

How to use

  • pip install pygame
    
  • python path.py
  • Place EXACTLY 2 GREEN blocks with RMB and click START SEARCH
    • You can place blocks to block the path with LMB
    • You can delete blocks with MIDDLE CLICK

Implemented algoritms

  • BFS
  • A* (A star)
  • Dijkstra
  • Greedy

Button controls

  • LMB - Increment
  • RMB - Decrement
  • MIDDLE CLICK - Set to 0

Tweaking

All of the default variables are in variables.json

  • Pause time - controls time between new blocks get visited
  • Path draw time - controls total time to draw the path
  • Grid size - controls the size of the grid in each dimension
  • Diagonal connections - controls whether algorithms will choose diagonal path

TODO

  • Modify bfs to use weights
  • Delete the diagonal setting completly

About

A little python project to visualize path finding algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.