Skip to content

Commit c380f35

Browse files
committed
fix(sdk): minimum turn max time is 50ms not 51ms
1 parent 8174168 commit c380f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/core/src/main/java/com/codingame/gameengine/core/GameManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public int getMaxTurns() {
421421
* if turnMaxTime ≤ 0
422422
*/
423423
public void setTurnMaxTime(int turnMaxTime) throws IllegalArgumentException {
424-
if (turnMaxTime <= MIN_TURN_TIME) {
424+
if (turnMaxTime < MIN_TURN_TIME) {
425425
throw new IllegalArgumentException("Invalid turn max time : stay above 50ms");
426426
} else if (turnMaxTime > MAX_TURN_TIME) {
427427
throw new IllegalArgumentException("Invalid turn max time : stay under 25s");

0 commit comments

Comments
 (0)