1. Computing & Technology

Discuss in my forum

Build a Simple Robocode Robot

By , About.com Guide

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.

©2012 About.com. All rights reserved.

A part of The New York Times Company.