Avoid local referee timeout

Hello,
Here’s a tip to avoid local timeouts while using BrutalTester,…
Copy the class GameManager in your referee (in the same package : com.codingame.gameengine.core)

Change the constants GAME_DURATION_HARD_QUOTA and GAME_DURATION_SOFT_QUOTA to 600 * 100000.

Then to override the referee timeouts, modify the methods setTurnMaxTime :
this.turnMaxTime = 100000;

and setFirstTurnMaxTime :
this.firstTurnMaxTime = 100000;

Now the referee timeout is 100 seconds.
WARNING : even then the logs can still cause timeouts.

2 Likes