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:
parent
7978ebbab3
commit
17dbef0927
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue