From c80a02f39b92d4274542d3c285873996a09e489e Mon Sep 17 00:00:00 2001 From: jedarden Date: Sun, 24 May 2026 22:50:43 -0400 Subject: [PATCH] fix(engine): reduce zone min radius for 3+ player to force combat contact For 3+ player matches, ZoneMinRadius was 3 (zone diameter 6) but attack radius is only 3.5 tiles (AttackRadius2=12). Bots at opposite edges of the final zone were 6 tiles apart - well outside attack range - allowing energy farming without forced combat. Set ZoneMinRadius=1 for 3+ player (zone diameter 2 < attack radius 3.5), guaranteeing any two bots in the final zone are within attack range. Tested with acb-local: 6-player match now shows combat_deaths>0 for all players. 2-player unchanged (ZoneMinRadius=3, attack radius 6). Closes: bf-1qg4 --- engine/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/types.go b/engine/types.go index 295c267..778a941 100644 --- a/engine/types.go +++ b/engine/types.go @@ -249,7 +249,7 @@ func ConfigForPlayers(numPlayers, coresPerPlayer int) Config { cfg.ZoneStartTurn = 15 // Start zone at turn 15 for 3+ players (per plan §3.7.1) cfg.ZoneShrinkInterval = 2 // Shrink every 2 turns per plan §3.7.1 cfg.ZoneShrinkStep = 2 // 2 tiles per interval (per plan §3.7.1) - cfg.ZoneMinRadius = 3 // Final zone diameter (6) forces bots into attack range (3.5) + cfg.ZoneMinRadius = 1 // Zone diameter (2) < attack radius (3.5), forces contact cfg.AttackRadius2 = 12 // 3.5 tiles per plan §3.4 (3+ player) }