mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Improved Mulligan AI: It will now ship hands of five cards without any lands.
This commit is contained in:
@@ -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 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user