P-Robots is a Pascal programming game inspired by CROBOTS and released in 1988 by David Malmberg. The object of the game is to write a program in a subset of Pascal control a battle robot. Up to four robots take part in a mêlée battle with the survivor being declared winner.
Programs are written in a subset of Pascal and control a robot using the following functions:
|Set the direction (0..359) and speed (0..100) for the robot to move|
|Return speed (0..100)|
|Return x-coordinate (0..999)|
|Return y-coordinate (0..999)|
|Scan in direction (0..359) with resolution (0..10) and return range|
|Fire missile in direction (0..359) with range (0..700)|
|Return damage sustained (0..100)|
|Return the current time measured in CPU cycles (0..32767)|
|Return the distance between two points in the arena|
|Return the angle to a point in the arena|
|Return a random number (0..limit)|
|Return the square root of n|
|Return the sine of n° (0..359)|
|Return the cosine of n° (0..359)|
|Return the arctangent of n|
Robots battle in a 1000×1000 metre arena. A robot is damaged when it's successfully attacked or involved in a collision and destroyed when its damage counter reaches 100%.
The complete specification is available in the P-Robots manual.
Version 3.0+ adds new features including bombs, cloaking device, shields and teams. Details are in the P-Robots 4.0 manual.
P-Robots was published as shareware by Softworks for DOS and the Mac in 1988, priced $20. Registered users received a copy of the source code. In 1994 P-Robots was relicensed as freeware.