Files
agentic-labs-challenge-subm…/underdepths/build_logs/p2_astar.log
T
2026-08-13 07:28:55 +02:00

11 lines
975 B
Plaintext

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.