Action mapping module #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.