git clone --recursive https://github.com/eskopp/Robocode.git
I recommend that you install Robocode in the following directory.
- Windows
C:\robocode
- Linux / Ubuntu
/usr/games/robocode
The project does not need a main function, so it can be a bit complicated to build artifacts in different interpreters.
- Example
import robocode.*;
public class MyBot extends Robot {
// The run method is called when the battle starts
public void run() {
// ...
}
}
cd Niffler
javac -cp robocode.jar Niffler.java
- Ubuntu folder:
~/.robocode/robots
- Windows folder:
C:\robocode\robots
- Window:
@echo off cd Niffler javac -cp robocode.jar Niffler.java copy /Y Niffler.class ../Niffler.class :: Basic installation copy /Y Niffler.class C:\robocode\robots\Niffler.class
- Linux:
cd Niffler javac -cp robocode.jar Niffler.java cp Niffler.class ../Niffler.class cp Niffler.class ~/.robocode/robots/