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 <noreply@anthropic.com>
This commit is contained in:
jedarden 2026-04-22 18:48:46 -04:00
parent 7978ebbab3
commit 17dbef0927

View file

@ -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)