(Underdepth) Pass 3
This commit is contained in:
1 parent
832f3a3345
commit
c61d73bdfc
30 files changed
+4151
No files matched your search
@@ -0,0 +1,10 @@
|
||||
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
|
||||
[LCM] Failed to initialize: database is locked
|
||||
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
|
||||
Done. `engine/pathfinding.py` created — only that file touched.
|
||||
|
||||
`astar` — 4-connected grid A*, Manhattan heuristic, `heapq` + insertion-order tie-breaker. Walkable = in-bounds & `tiles[y][x]==1` & not in `blocked` (per the contract). Returns full path start→goal inclusive, `[start]` when start==goal, `None` if either endpoint is unwalkable or unreachable.
|
||||
|
||||
Verified: self-check gate prints `astar ok`, plus the module's `__main__` self-check connects floor corners across all 9 generated dungeons (0 failures) and a wall-segment map correctly returns `None`.
|
||||
|
||||
Skipped: `ai/behaviors.py` (Phase 2 says build pathfinding only; behaviors lands after FOV+A* per the plan). Add when FOV + pathfinding both merged.
|
||||
Reference in new issue
Block a user