[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 - Sharing code between contestants

It is currently Sat Dec 15, 2018 1:09 am Advanced search

Sharing code between contestants

Random stuff about the contest, posts that don't fit in the other forums.

Re: Sharing code between contestants

Postby AndreasRLC » Thu Oct 07, 2010 4:14 pm

AndreasRLC
Cadet
 
Posts: 5
Joined: Sat Oct 02, 2010 11:25 am

Re: Sharing code between contestants

Postby toodlebug » Thu Oct 07, 2010 9:35 pm

Thank you all for your input,

Sorry if any of you feel I should not participate due to a lack of programming skill in java.
I just thought it would be fun to learn the language while having a bit of a challenge to step up to.

I was only asking for a wee bit of help, not your secret strategies.....

I will however continue to try by Bots.... look for "toodlebug" in the rankings....

PS i still would appreciate a example of how to add that class to my Bot
toodlebug
Cadet
 
Posts: 4
Joined: Sun Oct 03, 2010 11:48 pm

Re: Sharing code between contestants

Postby glevee » Thu Oct 07, 2010 10:17 pm

Hei

(Generally) You put new classes in their own file (Planet.java contains the "class Planet", PlanetWars.java the class PlanetWars.), then you just create an object of the class (pw = new PlanetWars(...)) and use it's methods (pw.MyPlanets()), pass it around (DoTurn(pw)), etc.

I actually think this IS a good place to work on a new language, as AndreasRLC says you need the "motivation", for me not having something REAL to "do/write" in the new language is always a real motivation killer. So what if you never get to the top, the contest gave you the oomph to get going on the language and who knows maybe tucked away in your brain is a really cool idea on how a robot should play . . . :)

(But he is right in that the contest-by-itself isn't good, you need to combine it with the tutorials/a book/etc.)
Good Luck!!
glevee
Colonel
 
Posts: 68
Joined: Tue Sep 28, 2010 1:11 am

Re: Sharing code between contestants

Postby sigh » Fri Oct 08, 2010 5:10 am

sigh
Cadet
 
Posts: 3
Joined: Tue Sep 07, 2010 1:10 am

Re: Sharing code between contestants

Postby rastafarra » Fri Oct 08, 2010 9:28 am

rastafarra
Lieutenant
 
Posts: 17
Joined: Sun Sep 19, 2010 7:00 pm

Re: Sharing code between contestants

Postby toodlebug » Sun Oct 10, 2010 2:58 am

toodlebug
Cadet
 
Posts: 4
Joined: Sun Oct 03, 2010 11:48 pm

Previous

Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest

cron