mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
merge fix
This commit is contained in:
parent
3b421de2e3
commit
f83c2bea4b
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue