Skip to content

Commit e852888

Browse files
author
Julien Poulton
committed
Merge branch 'fixed-minimal-max-turn-time' into 'master'
[FIX][sdk]: minimum turn max time is 50ms not 51ms See merge request codingame/game-engine!138
2 parents 8174168 + c380f35 commit e852888

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)