Robocode Basics
Jump to navigation
Jump to search
Robocode is a Java-based competitive programming game, originally released by IBM. Robocode was first released around July 27, 2001 by Mathew Nelson and IBM's AlphaWorks. Later on in March, 2005 Robocode became Open Source, and Mathew Nelson stopped developing it. In July 15, 2006 the Open Source project was taken over and continued by Flemming N. Larsen.
Frequently Asked Questions
- I can't install Robocode.
- First make sure you have Java installed on your computer. To check it, run the command:
java -version
It should execute and show a version 1.5 or higher. If not, go to Sun site and download the last version. After, make sure you have downloaded the correct file (robocode-setup.jar
). Execute the file by double-clicking on it, or if you want to do it manually, execute the following command:java -jar robocode-setup.jar
. It will launch an installer that will install Robocode. The installer creates the icons to execute Robocode, but you can execute it manually by running therobocode.bat
orrobocode.sh
file in the/robocode
directory.
- I have downloaded a robot from the Web, but I don't know how to use it, because it doesn't appear anywhere.
- By default, robots are read from the
/robocode/robots
directory. You can select "Robot -> Import Downloaded Robot" to copy a robot JAR to this directory from another location.
- What do I have to do to see the source code of a robot?
- You can do two things. The first option is to open the Editor Window in Robocode and use the command in the File menu. The second option is to open the robot ".jar" file with a zip utility and find the source code there (assuming, of course, the robot is open source).