feat(SNNBot): reset per-round stats and stale state, keep learning

Reset bulletsFired, bulletsHit, lastEnemyX/Y, lastAbsBearing, lastDecideGunDir, targetAngle, and lastInput at round start. BinaryAimer exemplar buffer persists across rounds to maintain learning continuity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 08:25:52 +02:00
parent 21ed6e50e1
commit dbc73f15ef
+9
View File
@@ -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)