From 17dbef092717f4f1f81dc870be3f8025466740a0 Mon Sep 17 00:00:00 2001 From: jedarden Date: Wed, 22 Apr 2026 18:48:46 -0400 Subject: [PATCH] fix(engine): repair partitionBots refactor in phase13 strategies The partitionBots() return type was changed to a struct but two call sites still referenced config.Turn inside bestExploreDir (now a parameter), and RaiderBot had an unused enemySet variable. Co-Authored-By: Claude Opus 4.7 --- engine/bot_strategies_phase13.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/bot_strategies_phase13.go b/engine/bot_strategies_phase13.go index 34a99cc..58306cf 100644 --- a/engine/bot_strategies_phase13.go +++ b/engine/bot_strategies_phase13.go @@ -178,9 +178,9 @@ func (b *ScoutBot) bestExploreDir(pos Position, config Config, turn int, claimed } lastSeen, ok := b.seen[p] if !ok { - score += config.Turn + 1 + score += turn + 1 } else { - staleness := config.Turn - lastSeen + staleness := turn - lastSeen if staleness > 0 { score += staleness } @@ -443,7 +443,6 @@ func (b *RaiderBot) GetMoves(state *VisibleState) ([]Move, error) { return nil, nil } - enemySet := posSetFromBots(enemyBots) wallSet := posSetFromPositions(state.Walls) energySet := posSetFromPositions(state.Energy) isolated := findIsolatedEnemies(enemyBots, config)