AI: little refactor

This commit is contained in:
Oleg Agafonov 2023-11-26 21:37:47 +04:00
parent 939ff7b441
commit 58ce3296b6
2 changed files with 17 additions and 2 deletions

View file

@ -74,6 +74,8 @@ public class ComputerPlayer extends PlayerImpl implements Player {
// 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;
final static int COMPUTER_MAX_THREADS_FOR_SIMULATIONS = 1; // TODO: rework simulations logic to use multiple calcs instead one by one
private transient Map<Mana, Card> unplayable = new TreeMap<>();
private transient List<Card> playableNonInstant = new ArrayList<>();
private transient List<Card> playableInstant = new ArrayList<>();