Some changes to AI player.

This commit is contained in:
LevelX2 2015-06-03 17:08:01 +02:00
parent 59c50436ac
commit f63fae06de
5 changed files with 49 additions and 27 deletions

View file

@ -160,6 +160,10 @@ import org.apache.log4j.Logger;
public class ComputerPlayer extends PlayerImpl implements Player {
private transient final static Logger log = Logger.getLogger(ComputerPlayer.class);
protected int PASSIVITY_PENALTY = 5; // Penalty value for doing nothing if some actions are availble
protected boolean ALLOW_INTERRUPT = true; // change this for test purposes to switch off interrupts while debugging
private transient Map<Mana, Card> unplayable = new TreeMap<>();
private transient List<Card> playableNonInstant = new ArrayList<>();
private transient List<Card> playableInstant = new ArrayList<>();