From a78105c89460909dc000345aadcebd89393a0e21 Mon Sep 17 00:00:00 2001 From: Davide Cappellini Date: Mon, 14 Sep 2026 22:30:28 +0200 Subject: [PATCH] feat(SNNBot): fire bullets every tick at fixed power MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fire during WAITING phase using FIRE_POWER constant (matches error signal's bullet speed calculation). Always shooting — fire timing optimization is out of scope for this map. --- SNNBot_garage/src/SNNBot.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/SNNBot_garage/src/SNNBot.nim b/SNNBot_garage/src/SNNBot.nim index 73d2b03..7c5558b 100644 --- a/SNNBot_garage/src/SNNBot.nim +++ b/SNNBot_garage/src/SNNBot.nim @@ -455,6 +455,7 @@ method run*(bot: SNNBot) = of WAITING: aimTo(bot.targetAngle, gunDir) + discard setFire(FIRE_POWER) let err = abs(normalizeRelativeAngle(bot.targetAngle - gunDir)) if err < AIM_TOL: bot.phase = EVALUATE