New testing frameworks for cards. BurntheImpure test.

This commit is contained in:
magenoxx 2011-03-10 15:27:15 +03:00
parent 196f7a32d8
commit 99735b368b
25 changed files with 1297 additions and 119 deletions

View file

@ -126,7 +126,7 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
@Override
public boolean chooseMulligan(Game game) {
logger.debug("chooseMulligan");
if (hand.size() < 6)
if (hand.size() < 6 || isTestMode())
return false;
Set<Card> lands = hand.getCards(new FilterLandCard(), game);
if (lands.size() < 2 || lands.size() > hand.size() - 2)