[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/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 - CPU Time

It is currently Tue Oct 23, 2018 11:40 pm Advanced search

CPU Time

Ideas for the Future

Re: CPU Time

Postby Frantic » Wed Dec 21, 2011 4:10 pm

Frantic
Major
 
Posts: 34
Joined: Fri Sep 02, 2011 3:11 pm

Re: CPU Time

Postby Equinoxe » Wed Dec 21, 2011 4:24 pm

Python, Java and OCaml look like having an unix-like interface also supporting windows. (Unix library from OCaml is available on windows for Unix.times(), Python says it's os.times() works even on windows - but only the part we need as threads are not allowed, Java looks like some library for doing this portably)

The biggest issue being to find some C function available for windows !
Equinoxe
Captain
 
Posts: 23
Joined: Mon Dec 19, 2011 9:55 pm

Re: CPU Time

Postby Frantic » Wed Dec 21, 2011 4:46 pm

Frantic
Major
 
Posts: 34
Joined: Fri Sep 02, 2011 3:11 pm

Re: CPU Time

Postby Equinoxe » Wed Dec 21, 2011 5:01 pm

Equinoxe
Captain
 
Posts: 23
Joined: Mon Dec 19, 2011 9:55 pm

Re: CPU Time

Postby Equinoxe » Wed Dec 21, 2011 6:55 pm

Oh, I forgot to answer to your last 2 sentences.

The function you found needs Win7 minimum, so I think it is not enough constraint-free.

But I found http://msdn.microsoft.com/en-us/library/ms724400 ... What do you think of it ?
Equinoxe
Captain
 
Posts: 23
Joined: Mon Dec 19, 2011 9:55 pm

Re: CPU Time

Postby Frantic » Wed Dec 21, 2011 8:00 pm

Frantic
Major
 
Posts: 34
Joined: Fri Sep 02, 2011 3:11 pm

Re: CPU Time

Postby Frantic » Wed Dec 21, 2011 8:06 pm

Frantic
Major
 
Posts: 34
Joined: Fri Sep 02, 2011 3:11 pm

Re: CPU Time

Postby Frantic » Wed Dec 21, 2011 8:15 pm

Frantic
Major
 
Posts: 34
Joined: Fri Sep 02, 2011 3:11 pm

Re: CPU Time

Postby amstan » Wed Dec 21, 2011 9:13 pm

Here's what i suggest for people that want to help.
After a bunch of solutions are found, make a writeup about them on the . Both about the bot end and the engine end.

Don't forget that there's still a need for wall time, otherwise bots could just troll with sleep(10000) because it uses very little cpu time to do that.
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: CPU Time

Postby Equinoxe » Wed Dec 21, 2011 9:30 pm

I added the Ruby version and the windows one. I won't say that windows version is far uglier than posix, but ... Oops, too late.

I am trying to make some python code for the server at the moment, coming back to edit when it is done !

Edit : I didn't read amstan's answer before posting. As soon as I will have done the engine version, I will try creating a new wiki page ! (BTW, isn't there any need for special authorizations ? And so, how could we make a writeup ? Is cloning / pull requesting working for the wiki ?)

Edit bis (read the whole post before answering) : I think that sleep(10000) bots wouldn't be a huge issue, as some other games may take place, as no CPU is needed for these. So, a real time limit of 10 * cpu time could work just as fine !

Edit ter : my edit bis parenthesized message was misunderstandable : I was speaking to myself.

Edit four : I love editing !
Equinoxe
Captain
 
Posts: 23
Joined: Mon Dec 19, 2011 9:55 pm

PreviousNext

Return to Suggestions

Who is online

Users browsing this forum: No registered users and 3 guests

cron