- install jdk 8, 11 or later Oracle JDK, Liberica JDK
- install robocode on your computer
- change
robotClass
to your robot'sclassName
ingradle.properties
- change
robocodeDir
to your robocode installation directory ingradle.properties
- create properties file with your class name in
src/main/resources
just like minecom/kortov/MyRobot.properties
(package structure is neccessary) and remove my properties (I'll improve my script later to get rid of this step) - replace
robot.classname
androbot.version
in your resources properties file to yourrobotClass
androbotVersion
values from gradle.properties (I'll improve it later) - (optional) replace
robotClassEnemy
in gradle.properties to your downloaded or built bot enemy classes (you can specify them with comma). Bots classes or jars should exist in robocodeDir/robots - cd in console to a project folder and run
gradlew superstart
in console (./gradlew superstart
on linux)
That's it! Your bot will be in projectDirectory/build/libs
and in robocodeDir/robots
Manually change versions in two properties from src/main/resources
and gradle.properties
otherwise robocode will play the old version or won't find the new one
invokes clean and removes your files of bot's jar, bots game scenario and imported bots table from your robocode installation directory
builds jar, moves jar and bots game scenario to robocode dir
starts robocode app with your bot game scenario
invokes cleanup, install, start tasks sequentially