hquxmu / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Server engine actually giving players 2 second turns #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The server engine currently sleeps for a second before starting the one-second 
timer for the players' turn limit. On one hand, this is giving players 2 
seconds to select their moves, but on the other hand, it prevents any game 
lasting n turns from finishing before n seconds have passed.

With the current turn limit of 200, this means that many games may take more 
than 3 minutes to run.

Fix:
backend/engine.py
Remove line 309:
    time.sleep(1)

Original issue reported on code.google.com by jokeserver on 8 Sep 2010 at 7:41

GoogleCodeExporter commented 9 years ago
Jeff, could you review this and push it to trunk if you agree? I don't want to 
waste space branching for this.

Original comment by jokeserver on 9 Sep 2010 at 7:10

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out. Let's give it a shot and see what happens. 
Hopefully throughput will double and nothing will break. The change is now live.

Original comment by cameron.jp@gmail.com on 10 Sep 2010 at 12:41