diff --git a/SNNBot_garage/src/SNNBot.nim b/SNNBot_garage/src/SNNBot.nim index 8842a58..9b48b4c 100644 --- a/SNNBot_garage/src/SNNBot.nim +++ b/SNNBot_garage/src/SNNBot.nim @@ -276,6 +276,15 @@ method onRoundStarted*(bot: SNNBot, e: RoundStartedEvent) = bot.velSpeed = 0.0 bot.phase = DECIDE bot.tick = 0 + # Reset per-round stats (learning persists across rounds) + bot.bulletsFired = 0 + bot.bulletsHit = 0 + bot.lastEnemyX = 0.0 + bot.lastEnemyY = 0.0 + bot.lastAbsBearing = 0.0 + bot.lastDecideGunDir = 0.0 + bot.targetAngle = 0.0 + bot.lastInput = [0'u64, 0'u64] setTargetSpeed(0.0) setTurnRate(0.0)