Although watching other people's robots destroy each other in the Arena is fun for a while, the truly addictive part of RoboWar is the design of original robots. Fortunately, the language used to program robots, known as RoboTalk, is simple and straightforward.
Having a few commands mastered is not the only stage in robot design. The equipment given to a robot limits its potential greatly. For instance, a robot with a flimsy amount of armor is not made to charge madly around the arena and spray bullets with reckless abandon. And a 'bot with a slower processor speed is not going to have a complex finesse-oriented strategy.
With the hardware limitations, it becomes evident that some planning is necessary. A robot that has been planned is more likely to work than one that was thrown together hastily. The planning can be divided into two major factors: offense and defense.
The style of offense to be used is mostly regulated by two factors: energy and armaments. A robot that fires slow-moving missiles could end up hurting itself seriously if it moves very fast. And a robot with a low energy level cannot fire shots with as much energy as a high-energy robot.
Offense is an easier task than defense. All that is required for a basic offense is scanning for targets and firing off shots. A robot has many options for what it will fire at enemies:
There are many options to choose from, and as a result there is much diversity in robot design. A good basic weapon for simple robots is the normal bullet, and the first example robots in this tutorial will be armed with these.
The same limitations that apply to processor speed, energy and damage also apply to weaponry. With the exception of rubber bullets, all the weapons here cost points in the hardware store. Thus it is wise to choose weapons that your robot can use to their fullest potential!
Defense, as defined in RoboWar, refers to "any behaviors that a robot uses to keep itself alive until it is the only survivor in the arena". It is the foundation of strong offense. If a robot sits still and is destroyed before being able to shoot, it does not matter if it was armed with a nuclear missile. After being eliminated, there is no chance of it scoring kills on other robots.
Robots have a number of options for keeping themselves alive while they sling shots at their enemies. The most basic are:
Through intelligent use of the three defensive measures, a robot can be designed that not only stays alive, but has energy left over to pound enemies into submission.
The Components of a Robot
Robots do not consist of only hardware and a strategy. They also involve code. A robot's code is the equivalent of its brain. It executes this code, instruction by instruction, at a rate determined by its processor speed. Well written code uses as few instructions as possible, in order to allow faster "thinking".
Even the code by itself is useless. Robots need a way for the code to sense and react to surroundings. A robot can at any time detect many things about its environment:
All robots have a turret, which holds both the sensors (for robots and bullets) and the gun. Shots are fired in the direction the turret is pointing. Also, robots are only seen directly in the aim of the turret. Thus a robot can be detected and fired on easily.
The turret is not a specific target that can be fired at, nor can it be destroyed in the course of battle. It also has no connection to direction of movement. Robots can move in any direction, regardless of turret aim.
With this knowledge of robot design, it is now time to go to the first example robot: a gun turret.