Wikia

Programmer's Wiki

Robocode

Talk2
393pages on
this wiki

Robocode is an open source educational game started by Mathew Nelson (originally provided by IBM). Currently contributions are being made by various people; officially Flemming N. Larsen is working on Robocode to keep it current and fix the bugs. The game is designed to help people learn to program in Java and enjoy the experience. It is very easy to start - a simple robot can be written in just a few minutes - but perfecting a bot can take months or more.

The game Edit

Competitors write Software that controls a miniature Tank that fights other identically-built (but differently programmed) tanks in a playing field. Robots move, shoot at each other, scan for each other, and hit the walls (or other robots) if they aren't careful. Though the idea of this "game" may seem simple, the actual strategy needed to win is not. Good robots can have thousands of lines in their code dedicated to strategy. Some of the more successful robots use techniques such as statistical analysis and attempts at neural networks in their designs.

Safely run other peoples' bots Edit

One can test a robot against many other competitors by downloading their bytecode, so design competition is fierce. Robocode provides a Sandbox (security) (bots are restricted in what they can do on the machine they run on), which makes internet redistribution safe.

Movement and Targeting Edit

Robocode competition is all about two things:

  1. Avoid getting hit too much (Movement)
  2. Try to predict where the opponent(s) will move and hit them as much as possible (Targeting)

Many sophisticated techniques have emerged. In particular, many top bots utilize:

  • WaveSurfing - Adapting your movement and trying to avoid getting hit the same way twice.
  • StatisticalTargeting - Collect data that describes the targeting situation together with what would have been the correct decision for each situation. Use this data to make targeting decisions.
  • GuessFactorTargeting - The best known form of StatisticalTargeting where the stats for enemy robots are each contained inside one number (the "GuessFactor").
  • PatternMatching - Tries to match patterns of observed behavior with previously observed patterns, and make decisions on targeting based around that.

Sample bots Edit

Several sample robots are included in Robocode to help the beginners get started. They demonstrate various basic techniques used in coding robots, from Event-driven programming to writing out data to files for use later. Search Kimpi Gerasol on Facebook, he is the famous creator of the other latest version of sample bots.

Code size restraints Edit

To force the competitors to prioritize what features to include in a bot there are four codesize categories (codesize is measured in bytes by a tool):

  1. Megabots - no codesize restriction
  2. Minibots - less than 1500 bytes
  3. Microbots - less than 750 bytes
  4. Nanobots - less than 250 bytes

Leagues Edit

There exist (and have existed) several leagues for Robocode.

RoboRumble@Home Edit

The main active competition is the RoboRumble@Home, a continuous league based on distributed computation in a similar way to SETI@Home. The RR@H features leagues for 1-on-1, melee (free for all with more than two bots) and teams. 1-on-1 and melee competitions are carried out for the four main code size categories.

The RR@H uses an ELO like rating system. But since all bots get to meet all other bots this is mainly a measure on how well you perform against all others. There is also a ranking where only winning or losing counts. Don't lose against any other bot and you're the sure champion here.

Robocode Little League Edit

While no longer active, the Robocode Little League (a weekly competition specifically for codesize-constrained bots) still provides tables on the past tournaments run.

Some robots worth mentioning Edit

Many bots are worth mentioning, of course, but some are more spectacular in their performance than others, and some have influenced Robocode bot development more than others.

RR@H Champions Edit

The current (March 2007) champions of the RR@H are:

Codesize Battle type Bot Comment
Megabots 1-on-1 Dookius Open Source
melee Aleph
teams Shadow
overall Shadow Among the runner-ups in both 1-on-1 and melee and undefeated in 1-on-1 at that.
Minibots 1-on-1 WeeksOnEnd First 2100 minibot.
melee GlowBlowMelee
overall hard to tell No mini melee bot is very good at 1-on-1
Microbots 1-on-1 WeeklongObsession Open Source
melee Shiz Open Source
overall hard to tell No micro melee bot is very good at 1-on-1
Nanobots 1-on-1 WeekendObsession Open Source
melee Lib Open Source
overall DoctorBob

Influential bots Edit

Once deemed impossible to beat, SandboxDT continues to be a strong competitor, drawing in new coders and bots.

Noted for spurring development are such bots as Shadow, which introduced WaveSurfing, and FloodMini, an Open Source minibot featuring StatisticalTargeting.

An Open Source top bot, CassiusClay has helped coders grasp advanced movement and targeting techniques.

Phoenix, the current #2 bot, has helped to demonstrate the power of graphical debugging. The code used to draw debugging information onto the screen is open-source, released as DrawingBot.

External links Edit

Smallwikipedialogo.png This page uses content from Wikipedia. The original article was at Robocode. The list of authors can be seen in the page history. As with the Programmer's Wiki, the text of Wikipedia is available under the GNU Free Documentation License.
Advertisement | Your ad here

Around Wikia's network

Random Wiki