How achintyajain1502/a-pathfinder-aisc works
This is a small Tkinter A* pathfinding visualizer. Users click grid cells to choose a start and goal and toggle obstacles, then run an animated search or reset the grid. The search uses four-way neighbors, Manhattan distance, and a priority queue; the interface displays visited cells and the resulting path. All runtime behavior lives in main.py, so the graph focuses on its user actions, search stages, and rendering. Edges are supported by the excerpted source; there are no separate storage or service layers.
Main entry points: main.py Search step
Components 10
Grid interface
- Grid state
main.py - Cell selection
main.py - Run and reset
main.py - Grid rendering
main.py
A* search
- Search setup
main.py - Neighbor lookup
main.py - Manhattan heuristic
main.py - Search step
main.py - Path and status
main.py
Other components
- User
Connections 13
- User → Cell selection: selects cells
main.py - Cell selection → Grid state: updates state
main.py - Cell selection → Grid rendering: refreshes
main.py - User → Run and reset: starts or resets
main.py - Run and reset → Search setup: starts search
main.py - Run and reset → Grid state: clears state
main.py - Search setup → Search step: schedules
main.py - Search step → Neighbor lookup: gets neighbors
main.py - Search step → Manhattan heuristic: estimates cost
main.py - Search step → Grid rendering: refreshes
main.py - Search step → Path and status: sets outcome
main.py - Grid rendering → Grid state: reads state
main.py - Search step → Search step: continues search
main.py