[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/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 - Differ timeouts on the same map/action

It is currently Mon Jan 22, 2018 2:41 pm Advanced search

Differ timeouts on the same map/action

Code won't compile? Found a bug? Post here!

Differ timeouts on the same map/action

Postby SUA.khb » Mon Nov 29, 2010 5:21 am

http://ai-contest.com/visualizer.php?game_id=9024436
http://ai-contest.com/visualizer.php?game_id=8999929

My bot can't do "randomly" 1st turn and it needs the same time to work in both cases.
I had no timeouts before 28/11/2010.
SUA.khb
Major
 
Posts: 39
Joined: Fri Sep 24, 2010 12:17 am

Re: Differ timeouts on the same map/action

Postby Cyrano » Mon Nov 29, 2010 10:44 am

I had a similar problem, i imagine that it depend on the load of the machine (i use 0.5s as internal timeout).

If many games are run, normally the loose will not effect the ranking too much.
Cyrano
Lieutenant
 
Posts: 12
Joined: Wed Nov 17, 2010 8:52 am

Re: Differ timeouts on the same map/action

Postby SUA.khb » Mon Nov 29, 2010 11:19 am

SUA.khb
Major
 
Posts: 39
Joined: Fri Sep 24, 2010 12:17 am

Re: Differ timeouts on the same map/action

Postby SUA.khb » Mon Nov 29, 2010 11:26 am

additionaly: all of timeouts were in the 1st turn
SUA.khb
Major
 
Posts: 39
Joined: Fri Sep 24, 2010 12:17 am

Re: Differ timeouts on the same map/action

Postby Cyrano » Mon Nov 29, 2010 12:57 pm

I use Java technologies, and jitter seems to be bigger. I notice that timeout occur less often when there is more play per hour.

For my last 15 play, there are 8 win, and 4 timeout, 2 lost. i'm arround ~1900.
Cyrano
Lieutenant
 
Posts: 12
Joined: Wed Nov 17, 2010 8:52 am

Re: Differ timeouts on the same map/action

Postby Mistmanov » Mon Nov 29, 2010 12:58 pm

Maybe your bot uses an uninitialized variable/array/etc, and sometimes you just get lucky with the variable already containing a number that doesn't cause a crash, and sometimes you get unlucky?
Mistmanov
Colonel
 
Posts: 70
Joined: Fri Sep 24, 2010 6:50 pm

Re: Differ timeouts on the same map/action

Postby amstan » Mon Nov 29, 2010 1:01 pm

Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Differ timeouts on the same map/action

Postby Mistmanov » Mon Nov 29, 2010 1:39 pm

Mistmanov
Colonel
 
Posts: 70
Joined: Fri Sep 24, 2010 6:50 pm

Re: Differ timeouts on the same map/action

Postby SUA.khb » Mon Nov 29, 2010 1:46 pm

SUA.khb
Major
 
Posts: 39
Joined: Fri Sep 24, 2010 12:17 am

Re: Differ timeouts on the same map/action

Postby iouri_ » Mon Nov 29, 2010 3:17 pm

I use C++ as well, and it took me a while (a few days) of running my bot on the contest server to figure out how to make it not time out.

Things depend a lot on how exactly you implemented time tracking; this is too late for you, but here's what I wrote for another contestant: viewtopic.php?f=18&t=1169#p7768

Also, did you use wall clock (e.g. gettimeofday()) or CPU runtime (e.g. clock()) for time measurement? The contest uses wall clock.
iouri_
Brigadier-General
 
Posts: 105
Joined: Thu Feb 11, 2010 4:16 pm
Location: Toronto, Canada

Next

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 4 guests

cron