- Core War
- Programming Games
- Robot
Robot is a programming game for the Processor Technology Sol-20 computer designed by Ray G. White in 1983. The object of the game is to write a program to control the movement, scanner, shields, cloaking device and weapon of a battle robot. Two robots are placed in a battle arena with the survivor being declared winner.
Specification
Robots are controlled by programs written in a simple BASIC-like programming language with 17 system registers and 2 user registers. The following commands and registers are supported:
| Register | Description |
|---|---|
A | Charges remaining on shield |
B | Power remaining on cloaking device |
C | Power remaining on jamming device |
D | Shield status — 0 = off, 1 = on |
E | Cloaking device status — 0 = off, 1 = on |
F | Jamming device status — 0 = off, 1 = on |
G | Obstacles — 0 = off, 1 = on |
H | Current x-coordinate (1..62) |
I | Current y-coordinate (1..14) |
J | Opponent's x-coordinate (1..62) |
K | Opponent's y-coordinate (1..14) |
L | Obstacle ahead (0..5) |
M | Gun status — 0 = failed, 1 = okay |
N | Forward / right status — 0 = failed, 1 = okay |
O | Reverse / left status — 0 = failed, 1 = okay |
P | Scanner status — 0 = failed, 1 = okay |
Q | Current direction (0..7) |
R, S | User registers |
| Command | Description |
|---|---|
PAUSE | Wait 1 turn |
GOTO(<line>) | Go to line <line> |
END | End program |
FORWARD | Move forward one unit |
REVERSE | Move back one unit |
SCAN | Activate the scanner and set the scan registers |
LEFT(<val>) | Turn anticlockwise <val> octants |
RIGHT(<val>) | Turn clockwise <val> octants |
FIRE(<val>) | Fire <val> octants clockwise from current direction |
DESTRUCT | Self-destruct |
CLOAKON | Activate cloaking device |
CLOAKOFF | Deactivate cloaking device |
JAMON | Activate jamming device |
JAMOFF | Deactivate jamming device |
SHIELDON | Activate shields |
SHIELDOFF | Deactivate shields |
LET(<reg>)=RANDOM(<val>) | Set <reg> to a random number (1..<val>) |
LET(<reg>)=(<val>) | Set <reg> to <val> |
INCREMENT(<reg>) | Add 1 to <reg> |
DECREMENT(<reg>) | Subtract 1 from <reg> |
IF(<reg>)=(<val>)GOTO(<line>) | If <reg> equals <val> then goto <line> |
IF(<reg>)<(<val>)GOTO(<line>) | If <reg> is less than <val> then goto <line> |
IF(<reg>)>(<val>)GOTO(<line>) | If <reg> is greater than <val> then goto <line> |
Robots battle in a 62×14 arena which may also contain land mines, electric fences and blockades. Robots have enough energy for ~750 turns and are damaged by collisions, being shot and firing with shields on.
The complete specification is available in the Robot manual.
Software