This repository contains a Python script that demonstrates the A* pathfinding algorithm using PyGame.
- Grid Setup: Create a grid where you can select a start and end point.
- Barrier Creation: Draw barriers on the grid to create obstacles.
- Pathfinding Visualization: Press SPACE to visualize the A* algorithm finding the shortest path between the selected points.
Run:
python astar.py
- Set up the grid and choose the start and end points.
- Draw barriers on the grid.
- Press SPACE to start the pathfinding simulation.
- Python
- PyGame
Explore the code and see how the A* algorithm navigates the grid in real-time!
For more details, visit the repository.