- Improved Mulligan AI: It will now ship hands of five cards without any lands.

This commit is contained in:
Sloth
2015-07-19 08:15:32 +00:00
parent 19a808ac62
commit 595739699b

View File

@@ -1452,7 +1452,7 @@ public class ComputerUtil {
final AiController aic = ((PlayerControllerAi)ai.getController()).getAi(); final AiController aic = ((PlayerControllerAi)ai.getController()).getAi();
// don't mulligan when already too low // don't mulligan when already too low
if (handList.size() <= aic.getIntProperty(AiProps.MULLIGAN_THRESHOLD)) { if (handList.size() < aic.getIntProperty(AiProps.MULLIGAN_THRESHOLD)) {
return false; return false;
} }
@@ -1467,6 +1467,11 @@ public class ComputerUtil {
} }
}); });
// mulligan when at the threshold, with a no land hand
if (handList.size() == aic.getIntProperty(AiProps.MULLIGAN_THRESHOLD) && lands.isEmpty()) {
return true;
}
return lands.size() < 2 ; return lands.size() < 2 ;
} }