Added the -c (clock) flag to determine the maximum time in seconds before the sim execution calls the match a draw. (#8202)

This commit is contained in:
Matija Huremović
2025-09-06 11:04:59 +02:00
committed by GitHub
parent 85812d819f
commit cce25a37c4
2 changed files with 15 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ public class GameRules {
private boolean AISideboardingEnabled = false;
private boolean sideboardForAI = false;
private final Set<GameType> appliedVariants = EnumSet.noneOf(GameType.class);
private int simTimeout = 120;
// it's a preference, not rule... but I could hardly find a better place for it
private boolean useGrayText;
@@ -124,4 +125,12 @@ public class GameRules {
public void setWarnAboutAICards(final boolean warnAboutAICards) {
this.warnAboutAICards = warnAboutAICards;
}
public int getSimTimeout() {
return this.simTimeout;
}
public void setSimTimeout(final int duration) {
this.simTimeout = duration;
}
}