This visualisation uses AI Generated code, finetuned for the best visualisation, not code quality
astar.mov
Interactive C + Raylib visualizer for A* pathfinding on a grid, showing open and closed sets, g/h/f scoring, parent pointers, and the final path reconstruction.
- How the heuristic guides exploration toward the goal
- How the open set and closed set evolve over time
- How parent links store the eventual path
- How presets change the obstacle field and search behaviour
flowchart LR
A["Grid + Obstacles"]
B["Open Set"]
C["Pick Lowest f"]
D["Expand Neighbors"]
E["Update g / h / f"]
F["Reconstruct Path"]
A --> B
B --> C
C --> D
D --> E
E --> B
C --> F
q: quit- Preset and runtime interactions are exposed directly in the UI
make run