#37
Maps raw network output (4 continuous values from tanh) to BotIntent fields.
a[0]
tanh * (10 - 0.75 * abs(currentSpeed))
a[1]
a[2]
a[3]
a[3] < 0
a[3] > 0
test_actions.nim
Action mapping module complete — speed-aware turn, asymmetric accel [-2,+1], fire threshold. 19/19 tests pass.
No dependencies set.
The note is not visible to the blocked user.
Parent
#37
What to build
Maps raw network output (4 continuous values from tanh) to BotIntent fields.
a[0]: Body turn rate —tanh * (10 - 0.75 * abs(currentSpeed))(speed-aware mapping so full output range always maps to achievable turn rates)a[1]: Acceleration — mapped to [-2, +1] (asymmetric: decel at -2, accel at +1, matching TankRoyale physics)a[2]: Gun turn rate — mapped to [-20, +20] degrees/ticka[3]: Fire — negative = don't fire; positive = fire power mapped to [0.1, 3.0]Acceptance criteria
a[3] < 0→ no fire;a[3] > 0→ fire with power in [0.1, 3.0]test_actions.nimpassesBlocked by
Action mapping module complete — speed-aware turn, asymmetric accel [-2,+1], fire threshold. 19/19 tests pass.