It is currently Sat Jul 21, 2018 9:42 am Advanced search

AiChallenge Starter kit Java Tutorial Help!!

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

AiChallenge Starter kit Java Tutorial Help!!

Postby Vetox » Mon Dec 05, 2011 3:46 pm

Well, Hi guys i found aichallenge.org through some random browsing and decided to try it out in Java. Since I had no clue on how everything worked I tried out the tutorial but got stuck on the first step which is Avoiding Collisions. I am not sure where to put in the code given there. I know I have to put it some place in MyBot.java but not sure where. I have gone through the code and the text on that page but it isn't clear enough as to where that code should be inserted. Any help would be appreciated :)

The page I was talking about
http://aichallenge.org/ants_tutorial_step_1.php
Vetox
Cadet
 
Posts: 1
Joined: Mon Dec 05, 2011 3:36 pm

Re: AiChallenge Starter kit Java Tutorial Help!!

Postby McLeopold » Tue Dec 06, 2011 1:10 am

In the MyBot.java file, remove the doTurn function and paste everything in step 1 in its place.

You should still have the "import", the "public class" and the "public static void main" lines.
McLeopold
Contest Organizer
 
Posts: 262
Joined: Sun Sep 19, 2010 3:31 am


Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron