AI: fixed that computer can't play commanders (#7955);

This commit is contained in:
Oleg Agafonov 2021-07-01 18:21:15 +04:00
parent d0ee17d661
commit 62d6675be6
4 changed files with 40 additions and 8 deletions

View file

@ -70,7 +70,9 @@ public class ComputerPlayer extends PlayerImpl implements Player {
private long lastThinkTime = 0; // msecs for last AI actions calc
protected int PASSIVITY_PENALTY = 5; // Penalty value for doing nothing if some actions are available
protected boolean ALLOW_INTERRUPT = true; // change this for test to false / debugging purposes to false to switch off interrupts while debugging
// debug only: set TRUE to debug simulation's code/games (on false sim thread will be stopped after few secs by timeout)
protected boolean COMPUTER_DISABLE_TIMEOUT_IN_GAME_SIMULATIONS = false;
private transient Map<Mana, Card> unplayable = new TreeMap<>();
private transient List<Card> playableNonInstant = new ArrayList<>();