The Challenge
Find out the details of your mission!
Download SDK
Getting started by downloading the Java SDK.
Read the Tutorial
The tutorial will give you an overview on all SDK tools. Try to implement and run your first AI.
Upload your AI
Happy about your first version? Get into the game by uploading it.
Lookup your Rank
Now it's time to compare your AI against the others.

CodeBattle SDK Installation

1. CodeBattle SDK Download

Here you can download the CodeBattle SDK required to develop your AI.

2. CodeBattle SDK Prerequisites

Java Development Kit

You can either use IntelliJ IDEA or Eclipse as the development environment for this SDK. The SDK also requires Java 8 JDK. To download Java 8 you can use the following download link.

After you have installed the JDK please set the JAVA_HOME environment variable to the Java installation path. How this works you can read here for Windows and here for Linux.

IntelliJ IDEA IDE Download

Eclipse Java IDE Download

Eclipse IDE for Java Developers
Important: Ensure that your Eclipse version supports Maven and Java 8.

3a. CodeBattle SDK IntelliJ IDEA Integration

  1. Unpack the downloaded SDK into any folder.
  2. Start your IntelliJ IDEA.
  3. Now import the Maven project into your IntelliJ IDEA using File > New > Project from Existing sources...
  4. Select the pom.xml file in the unpacked directory.
  5. Click thorugh all the configuration steps and select the JDK 1.8.
  6. After a short time IntelliJ IDEA should fix all pending errors of the project.
  7. Move the folder runConfigurations into the .idea folder and all the runConfigurations should appear.
  8. Now you can have a look at the source code. The MyCodeBattleClient.java (in the directory src/main/java/ai/implementation) will contain your implementation. Feel free to add your own classes and Maven dependencies. And it is better to use a source code management tool to prevent loosing any changes.
    More details about developing your AI you can find in the Development Tutorial.

3b. CodeBattle SDK Eclipse Integration

  1. Unpack the downloaded SDK into any folder.
  2. Start your eclipse, it is best to use a new Workspace.
  3. Now import the Maven project into your Eclipse using File > Import... > Existing Maven Projects.
  4. After a short time Eclipse should fix all pending errors of the project.
    If that doesn't fix the issue, select the project and press Alt+F5 (Mac: ⌥+F5) and click ok to update the maven project configuration.
  5. Now you can have a look at the source code. The MyCodeBattleClient.java (in the directory src/main/java/ai/implementation) will contain your implementation. Feel free to add your own classes and Maven dependencies. And it is better to use a source code management tool to prevent loosing any changes.
    More details about developing your AI you can find in the Development Tutorial.