The following code visualizes the solving process of common pathfinding algorithms.
Choose a start and an end point, create barriers and run either A*, BFS (Breadth First Search) or Dijkstra algorithms!
A* -> BFS -> Dijkstra:
Screen.Recording.2021-11-11.at.10.57.19.mov
Operating instructions:
- Choose a start (orange) and an end (turquoise) point (first and second left-clicks accordingly)
- Create barriers (left-clicks) Right click on any block to reset it
- Choose an algorithm to run: 'a' key - A* 'b' key - BFS 'd' key - Dijkstra
- Reset the grid ('n' key) and start again!