merge fix

This commit is contained in:
Oleg Agafonov 2025-04-19 17:48:27 +04:00
parent 3b421de2e3
commit f83c2bea4b
2 changed files with 3 additions and 2 deletions

View file

@ -34,7 +34,8 @@ public class ActionSimulator {
}
public int evaluateState() {
Player opponent = game.getPlayer(game.getOpponents(player.getId(), true).stream().findFirst().orElse(null));
// must find all leaved opponents
Player opponent = game.getPlayer(game.getOpponents(player.getId(), false).stream().findFirst().orElse(null));
if (opponent == null) {
return Integer.MAX_VALUE;
}