home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
P_ROBO31.ZIP
/
GORO.PR
< prev
next >
Wrap
Text File
|
1993-02-03
|
1KB
|
28 lines
(**************************************************************************)
(* W A R N I N G *)
(* *)
(* This Robot has NOT been designed to take advantage of the advanced *)
(* features of P-ROBOTS, such as, Shields, Fuel, Teams or Obstructions. *)
(**************************************************************************)
PROCEDURE GORO;
{ GORO is based on a Japanese 60's TV drama "Ultra-Q"
Original C-Robot by Hortense Endoh}
VAR
dir, Range : Integer;
BEGIN {Goro Main}
dir := 0;
REPEAT { loop until dead or winner }
Range := scan(dir, 10); { look }
IF (Range > 40) AND (ObjectScanned = Enemy) THEN BEGIN
IF Range < MaxMissileRange THEN cannon(dir, Range); { fire }
drive(dir, MaxSpeed); { move }
END
ELSE
dir := dir+170; { change look and drive direction }
UNTIL Dead OR Winner;
END; {Goro Main}