- Core War
- Programming Games
- DROID
DROID is a programming game written by Robert Yazhari, Joshua Kors, and Craig Fransen at Reichhold Chemicals in 1984. The aim of the game is to write a program to control the the movement, radar, gun and radio of a battle robot. Up to seven robots are placed in an arena with the survivor being declared winner.
Specification
D-code is a stack based programming language that provides instructions to manipulate the stack, perform simple maths and transfer control. DROID has 24 general purpose user registers and 10 system registers:
| Register | Description |
|---|---|
A–W, Z | General purpose |
X | Current x-coordinate (0..6299) |
Y | Current y-coordinate (0..3399) |
TURRET | Angle of the gun (0..3599), returns status of the gun |
SHOT | Set to distance to shoot, returns amount of damage inflicted |
RADAR | Set to angle to scan, returns distance to wall/robot |
WIDTH | Width of radar beam |
DAMAGE | Damage status (0..100) |
SPEEDX | Horizontal speed (-10000..10000) |
SPEEDY | Vertical speed (-10000..10000) |
RANDOM | Set to limit, returns a random number (0..limit) |
Robots battle in a 6300×3400 arena. A robot is damaged every time
it's attacked or collides with something and destroyed when DAMAGE
reaches zero.
The complete specification is available in the DROID manual.
Software
DROID is written in SPL for the HP 3000 series of minicomputers and was distributed on the 1985 Interex CSL tape:
- DROID A.03 (12 Jul 1984) - droidsrc.txt, manual
The following robot programs are available: