This is a simple pathfinding visualizer implemented in Python using the Pygame library. It allows you to interactively place start and end points, as well as obstacles, and visualize various pathfinding algorithms.
Greedy Best-First Search Algorithm

- Place start and end nodes.
- Add obstacles to the grid.
- Visualize pathfinding algorithms:
- A* (A Star)
- Dijkstra's
- Depth-First Search (DFS)
- Breadth-First Search (BFS)
- Greedy Best-First Search
- Make sure you have Python and Pygame
- Clone this repository: git clone https://github.com/GlennWilliam/PathVisualizer.git
- Navigate to the project directory:
- Run the visualizer: python main.py
- To change the algorithm, change the algorithm function on the main.py
- Left-click: Place start and end nodes, and add obstacles.
- Right-click: Remove nodes and obstacles.
- Press 'Space': Run the selected pathfinding algorithm.
- Press 'C': Clear the grid.
- Press 'Ctrl + X': Quit the program.
- A* (A Star)
- Dijkstra's
- Depth-First Search (DFS)
- Breadth-First Search (BFS)
- Greedy Best-First Search



