Network forward pass → bot moves via neural network #14
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
#13
What to build
Wire a working neural network into PPO_Bot so the bot moves, turns, and fires based on network output — even though weights are random and state is minimal.
End-to-end slice:
runloop, construct a dummy/hardcoded 42-float state tensor (zeros or constants — real state comes in slice 2), forward through actor, apply actions viasetTargetSpeed,setTurnRate,setGunTurnRate,setFire/setFirePower.All RL logic must operate on plain Tensor[float32] — no bot API types cross the seam. The bot glue is thin assignment statements only.
Acceptance criteria
Blocked by
None — can start immediately
Resolved in
f27b023. Actor (42→64→64→5) and critic (42→64→64→1) forward pass, stochastic policy with learnable log-std (floored at -3.0), action mapping with speed-dependent turn scaling and gun heat masking. Tests in test_state.