A Python-based visualizer for popular pathfinding algorithms, built with Tkinter. Allows interactive drawing of obstacles, start and end points, and visual demonstration of pathfinding logic.
- Drag to draw/remove walls
- Click to place start/end points
- Real-time visualization of various popular path finding algorithms like BFS, DFS, etc.
- Reset Board options
- Python 3.x
- No external libraries required (only Tkinter)
-
Clone the repository:
git clone https://github.com/your-username/pathfinding-visualizer.git cd pathfinding-visualizer
-
Run Program:
python main.py
Dropdowns
: Select algorithm and block type (Source, Destination, Wall, Free Space)Left Click + Drag:
Place or remove blocks based on selected typeStart Button:
Runs the selected pathfinding algorithmReset Button:
Clears the entire grid and resets the board
-
⚡ A-Star Search
An informed search using heuristics to find the shortest path more efficiently. -
🔍 Best First Search
Chooses the next node based solely on heuristic estimate to the goal (greedy approach). -
📈 Breadth-First Search (BFS)
Explores all neighbors level-by-level; finds the shortest path in unweighted graphs. -
📉 Depth-First Search (DFS)
Explores as far as possible along each branch before backtracking; not guaranteed shortest.
Feel free to fork and submit pull requests if you'd like to add new features, implement new searching algorithms or fix bugs.