1. Home
  2. Computing & Technology
  3. Java

Build a Simple Robocode Robot

By Paul Leahy, About.com

Level: Beginner

Focus: Using an API

Build a Simple Robocode Robot Question

Download and install Robocode. Open the New Battle Dialog by choosing New from the Battle menu. In the list of available robots to battle there is a sample robot called 'Fire'. It's designed to only move once it has been fired upon, whilst continually spinning its gun around to look for a target to shoot. Can you build a simple robot that can beat Fire over a standard ten round battle?

If you look around the RoboWiki or explore the code of the sample robots you should find enough information to get you going.

To get the most out of this question try and figure out the answer before coming back to read the solution on the next page.

Explore Java
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Java
  4. Programming Exercises
  5. Beginner Level
  6. Robocode : Build a Simple Robocode Robot with Java>

©2009 About.com, a part of The New York Times Company.

All rights reserved.