Halite Home

Bot Submission (Java) - Structure


Hi All,

I feel like I'm missing something rather basic.

I've went to the most basic thing - downloaded the starter kit, created a project in Eclipse with default package. There were no changes to the code - so it's a default RandomBot.
Everything compiled, I could run the bot on my machine.
I zipped only the MyBot.java, submitted it, and got the following:

First Bot Timeout/Error 11/17/2016, 11:35:18 PM
Compilation Success 11/17/2016, 11:34:57 PM
Bot Received 11/17/2016, 11:34:45 PM

Log shows:

--- Init ---
Error: Could not find or load main class MyBot
--- Bot used 654 milliseconds ---

--- Frame #1 ---

No response received.

I didn't find any submission guidelines which will outline the files and their location in the zip.

I would really appreciate anyone here telling what's their file structure in Java zipped bot when they submit.



So you submitted only the MyBot.java? Thats all that is in your zip file? It cannot work then as it needs the other classes too.
Create a zip file with all .java classes that you have and submit that instead.


Attaching all other files from starter kit worked :slight_smile:


Is it okay if I change files like Site.java and GameMap.java by adding methods that might be useful before submitting it? Will those changes work when other bots are challenged or will the default classes when you download the file be used on the servers?


Yes! Those files are included so that you can change them to fit your needs! Each bot uses its own copy of those files. You can even make new files as long as you include them in the zip file you upload.