This Python tool allows users to visualize the behavior of two popular pathfinding algorithms: A* (A-star) and Breadth-First Search (BFS). It features an intuitive graphical interface where users can interactively set up obstacles, start, and end points on a grid. Users can then watch in real-time as the algorithms calculate and display the shortest path. This tool is excellent for understanding how these algorithms work and comparing their performance.
Algorithm Implementations: Implements A* (A-star) and Breadth-First Search (BFS) pathfinding algorithms. 🤖
Real-time Visualization: Visualizes the search process of the algorithms in real-time using a graphical user interface. 👀
Interactive Grid: Users can interactively set start and end points, and place obstacles (walls) on the grid. 🧱
User Control: Options to step through the algorithm or run it in real-time. ⏯️
Start/End Point Placement: Click to set the start (green) and end (blue) points. 🟢🔵
Obstacle Placement: Click to place obstacles (walls) on the grid (gray). 🚧
Removal: Right-click to remove obstacles or clear start/end points (back to black). ⬛
A Algorithm Execution:* Press SPACE to run the A* algorithm. ✨
BFS Algorithm Execution: Press B to run the BFS algorithm. 🔍
Visual Feedback:
- Open Cells (Explored): Cells being explored turn white. ◻️
- Closed Cells (Fully Explored): Cells that have been fully explored turn gray. ⬛
- Path: The final shortest path is highlighted in red. 🟥