Robocode/Learning from Robots

From RoboWiki
Jump to: navigation, search

This page suggest that you learn from other robots by downloading and examining the source code of robots.


Learning from other Robots

By now, you should know how to use the Robot editor and create robots. If not, you should follow the My First Robot Tutorial first. You will also want to look at some tutorials.

Eventually, though, you'll want to learn by examining code written by others. Some authors graciously include the source to their robots, and you can examine these robots using the Extract downloaded robot for editing tool, in the Robot Editor:

Shows how to extract a robot by selecting "Extract downloaded robot for editing" in the File menu of the Robot Editor

Simply select the robot you want to extract...

Shows the dialog used when extracting a robot, where the user must choose which robots to extract

Then click Extract to extract the .jar to the robots directory..

Shows a dialog which prints out information about the progress and results of extracting a robot

As you can see, the files in this example were extracted to C:\robocode\robots\rapture\. You can now open them up and look at them in the Robot Editor:

Shows the Open File dialog for the Robot Editor where the user can select which files to open in the editor

See also

Robot API


News and Releases

Home pages

Personal tools
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Can't contact the database server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (localhost))

You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.