From 33f61970f99d1a2ece1df566b84702bb29eadd26 Mon Sep 17 00:00:00 2001 From: jedarden Date: Sun, 24 May 2026 20:09:08 -0400 Subject: [PATCH] =?UTF-8?q?fix(engine):=20align=20DefaultConfig()=20zone?= =?UTF-8?q?=20parameters=20with=20plan=20=C2=A73.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DefaultConfig() function had incorrect zone parameters: - ZoneStartTurn: 50 → 20 (2-player default per plan) - ZoneShrinkInterval: 5 → 2 (shrink every 2 turns per plan) This was causing the zone to start too late and shrink too slowly, allowing bots to farm energy without being forced into combat. The ConfigForPlayers() function already had correct values, but DefaultConfig() is used in WASM builds (cmd/acb-wasm/main.go) and various tests. Closes: bf-4idw Co-Authored-By: Claude Opus 4.7 --- engine/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/types.go b/engine/types.go index 9b53e7b..efc7a9f 100644 --- a/engine/types.go +++ b/engine/types.go @@ -191,8 +191,8 @@ func DefaultConfig() Config { EnergyInterval: 10, CoresPerPlayer: 2, ZoneEnabled: true, - ZoneStartTurn: 50, - ZoneShrinkInterval: 5, + ZoneStartTurn: 20, // 2-player default per plan §3.7.1 + ZoneShrinkInterval: 2, // Shrink every 2 turns per plan §3.7.1 ZoneShrinkStep: 2, ZoneMinRadius: 3, }