CodeRally Installation Instructions

The sections below describe how to configure a machine with the CodeRally environment.

Prior Installation

Before installing CodeRally, you must have a working Java JRE installed on your machine, and a copy of the Eclipse v2.1 platform from www.eclipse.org.

Installing the CodeRally Environment

The following steps install the CodeRally game onto your machine as an Eclipse plugin, and initialize your workspace.

  1. Download CodeRallyPkg.zip.
  2. Unzip CodeRallyPkg.zip into the [Eclipse install dir]/eclipse/plugins directory, where [Eclipse install dir] is the directory in which Eclipse is installed. This should create a new directory called [Eclipse install dir]/eclipse/plugins/com.ibm.coderally.
  3. Start Eclipse.
  4. Select the Window > Preferences... menuitem.
  5. Select CodeRally from the tree, and then click Create project on the right. Click OK.
  6. Select the Window > Perspective... menuitem.
  7. Select Java from the list and click OK.
  8. Select the Window > Customize Perspective... menuitem.
  9. Expand the Other section and check the CodeRally option. Click OK.
  10. You should see a new toolbar containing five CodeRally toolbar buttons, as shown below.


Getting Started

You are now ready to develop a rally car! If you are unfamiliar with the CodeRally environment, take the following steps to write and test your own rally car:
  1. Expand the CodeRally project, and the (default package).
  2. Right click on RallyCar.java and select Open.
  3. You can now start modifying your rally car. Change the car name and colour. Make changes to the methods of the RallyCar class as indicated.
  4. When you are ready to test your car, click on the test button () on the toolbar.
  5. When the CodeRally game appears, select one or more of the samples using the buttons provided. Click OK.
  6. Once the match is over, you can click on the exit button at the bottom right of the CodeRally screen.