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

12 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
Done. Created **only** `engine/fov.py` (Phase 2 FOV task). Self-check prints `fov ok`; additional checks confirm rooms reveal floors + bounding walls and that a wall pillar blocks sight to floors behind it.
`engine/fov.py` — `compute_fov(gmap, ox, oy, radius) -> set[tuple[int,int]]`:
- 8-octant recursive shadowcasting (Björn Bergström) lights reachable tiles; walls block and cast shadows.
- Result = origin ∪ lit floor tiles ∪ walls adjacent to a lit floor (within Chebyshev radius).
- Origin is never placed in the lit set, so a sealed player has no lit floor neighbor → sees only self (passes the gate).
Skipped: mutating `gmap.visible`/`explored` in this function (signature returns a set; caller merges into grids). Add if a later phase wants `compute_fov` to write the grid directly.