[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - loadtime vs turntime first turn

It is currently Thu Jun 21, 2018 9:43 pm Advanced search

loadtime vs turntime first turn

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

loadtime vs turntime first turn

Postby kuisma » Mon Oct 31, 2011 8:54 am

Suggestion: please apply loadtime first turn instead of turntime. With java and JIT, this is quite needed.
kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: loadtime vs turntime first turn

Postby kuisma » Mon Oct 31, 2011 12:00 pm

Maybe I'm wrong, it might not be JIT, but all the water added the first turn. The solution is the same anyway, applying loadtime the first turn (i.e. both turn 0 and turn 1). As now, with a decreased turntime to 500ms, the Java starter kit may fail during the first turn.

I get the impression this is a bug in the engine and not the bot. Checking the time at the beginning of doTurn(), and it has already elapsed almost the entire turntime for the first turn. Seems the engine takes too long time delivering the initial data (the water tiles?) and sends the bill to the bot ... :(
kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: loadtime vs turntime first turn

Postby Janzert » Tue Nov 01, 2011 4:30 am

The turn data is sent to the bots before turn time is started (before the bots are even 'unpaused' on the contest servers). The one thing I did catch in reviewing this is that the turn time was starting before unpausing the bots. This could cause the bot to not have quite the full turn time available, but I doubt it would ever eat an appreciable amount. I have corrected it so we should be completely in favor of the bot with our measurement now.
Janzert
Contest Organizer
 
Posts: 271
Joined: Sun Feb 07, 2010 1:59 am

Re: loadtime vs turntime first turn

Postby kuisma » Tue Nov 01, 2011 6:04 am

kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: loadtime vs turntime first turn

Postby kuisma » Tue Nov 01, 2011 7:56 am

Last edited by kuisma on Tue Nov 01, 2011 8:21 am, edited 1 time in total.
kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: loadtime vs turntime first turn

Postby sas4eka » Tue Nov 01, 2011 8:14 am

I got the same problem. First turn timeout two last games http://aichallenge.org/profile.php?user=540 . I think this problem exists in multihill maps only , when it's necessary to get more than 200 new water squares on the 1st turn.
sas4eka
Cadet
 
Posts: 2
Joined: Tue Nov 01, 2011 8:01 am

Re: loadtime vs turntime first turn

Postby sas4eka » Tue Nov 01, 2011 8:33 am

The problem is in the slow java Scanner. Parser from Java Starter Package creates new Scanner and works with it for each line of input. When you have a large input this time becomes critical. I just replaced Scanner into StringTokenizer, my input became very fast and now it's time is about 50ms instead of 400.
Last edited by sas4eka on Tue Nov 01, 2011 9:20 am, edited 1 time in total.
sas4eka
Cadet
 
Posts: 2
Joined: Tue Nov 01, 2011 8:01 am

Re: loadtime vs turntime first turn

Postby mleise » Tue Nov 01, 2011 8:37 am

mleise
Lieutenant-Colonel
 
Posts: 42
Joined: Mon Sep 27, 2010 6:18 pm

Re: loadtime vs turntime first turn

Postby kuisma » Tue Nov 01, 2011 9:14 am

kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: loadtime vs turntime first turn

Postby Janzert » Tue Nov 01, 2011 3:49 pm

Janzert
Contest Organizer
 
Posts: 271
Joined: Sun Feb 07, 2010 1:59 am


Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 0 guests

cron