code wiki / _hdl_build / nx_breeder_arena_gate.nx
nx_breeder_arena_gate.nx
buildroot/runtime/_hdl_build/nx_breeder_arena_gate.nx
about
nx_breeder_arena_gate.nx -- proves the COMPOSED loop is a game: a player moving in a real world with
collision, wilds that hunt him, duels that resolve, capture that preserves identity, and breeding that
pays off -- winnable AND losable, bit-deterministic, with the world's invariants intact all run.
This is the gate that EARNS the gamebench physics-collision flip; without it that flip would be a claim.
MUTATION TARGET (documented): make the player invulnerable (BA_LOSS_HP=0) => the reckless policy can no
longer lose => stakes collapse => nx_game_depth caps the score below SHALLOW => T2 and T6 RED.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_breeder_arena.nxnx_game_depth.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 29 | const K: i64 = 4 // strategies scored by the depth critic (2 hunt, 2 reckless) |
functions
| 12 | func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 13 | func pn(v: i64) -> i64 |
| 27 | func nl() -> i64 { p("\n" as *u8); return 0 } |
| 31 | func newG() -> *i64 { return sys_mmap(ba_words() * 8) as *i64 } |
| 32 | func newBT() -> *i64 { let b: *i64 = sys_mmap((1 + 512*BRD_BEAT_STRIDE) * 8) as *i64; b[0] = 0; return b } |
| 33 | func newEV() -> *i64 { let e: *i64 = sys_mmap((1 + 512*EV_STRIDE) * 8) as *i64; e[0] = 0; return e } |
| 35 | func main() -> i64 |