Ezraay / kaggle

FIT 3163 Connect X competition on Kaggle
0 stars 0 forks source link

Counting how long a turn takes #19

Closed Ezraay closed 1 year ago

Ezraay commented 1 year ago

There is a requirement on Kaggle that the first turn takes less than 60 seconds, and all subsequent turns take less than 2 seconds. In order to properly test these constraints, we need a way for the simulation to throw an error if the time taken per turn is too long.

Example output:

ERROR: 
Player 1 - RandomAgent took too long on Turn 15
    Expected: 2000ms
    Actual: 2548ms