A creative way of visually seeing how different Path-Finding algorithms work
- Don't add already closed nodes to the
frontier
on node expansion. - Check if the expanded node is the same as the
target
on node expansion.
- Left-click:
- Player
- Target
- Walls
- Right-click:
- Erase
- Keys:
R
: Rotate playerF
: Forward playerC
: Clear gameSpace
: Compute plan1
: Breadth-First-Search (BFS)2
: Depth-First-Search (DFS)3
: Dijkstra4
: A-Start
- Red: Player
- Purple: Target
- Black: Wall
- Blue: Closed nodes
- Green: Open nodes
- Orange: Plan steps