home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
138.lha
/
Cycle
/
Dizzy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-11-20
|
329b
|
22 lines
/* A shell for starting a player */
#include "cycles.h"
char player_name[] = "Dizzy";
strategy_init() {}
strategy_finish() {}
strategy()
{
long x,y,dir;
GetInfo(&x,&y,&dir);
if(!Look(TURN_LEFT(dir)))
return(TURN_LEFT(dir));
else if (!Look(TURN_RIGHT(dir)))
return(TURN_RIGHT(dir));
else
return(dir);
}