Robocode is an Open Source Educational game started by Mathew Nelson (originally provided by IBM). Currently contributions are being made by various people; officially Flemming N. Larsen is working on Robocode to keep it current and fix the bugs. The game is designed to help people learn to program in Java (programming language) and enjoy the experience. It is very easy to start - a simple robot can be written in just a few minutes - but perfecting a bot can take months or more.
Requirements: In order to run Robocode, Java 6 Standard Edition (SE) or a newer version of Java must be installed on your system. Both the Java Runtime Environment (JRE) and the Java Developer Kit (JDK) can be used. Note that the JRE does not include the standard Java compiler (javac), but the JDK does.
- fork Github project
- clone the forked repo into your favourite IDE (currently Eclipse and IntelliJ are automatically supported)
- Checkout the package structure
- in
com.ite.robocode
you will find a Java classMySampleBot
- copy this class name to whatever you like (e.g.
MySuperRobot
). This name will be your robots name. Choose wisely! - basic robots extend the
Robot
class. All methods can be manually overwritten. To find some inspiration you can checkout theSample
package. - let the fun begin and program your own robot behaviour.
- you can test your robots behaviour by performing
gradle run
. In the pop up window pressSTRG + N
, choose the packagecom.ite.robocode
and add your robot. Add a sample robot from the sample package, hitStart Battle
and watch your robot perform - once you finished or time runs out you need to create a
Pull Request
- you're done. Relax or cheer for your robot while watching the performance against the others!