home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 138.lha / Cycle / Dizzy.c < prev    next >
C/C++ Source or Header  |  1986-11-20  |  329b  |  22 lines

  1. /* A shell for starting a player */
  2. #include "cycles.h"
  3.  
  4. char player_name[] = "Dizzy";
  5.  
  6. strategy_init() {}
  7. strategy_finish() {}
  8.  
  9. strategy()
  10. {
  11.   long x,y,dir;
  12.  
  13.   GetInfo(&x,&y,&dir);
  14.  
  15.   if(!Look(TURN_LEFT(dir)))
  16.     return(TURN_LEFT(dir));
  17.   else if (!Look(TURN_RIGHT(dir)))
  18.     return(TURN_RIGHT(dir));
  19.   else
  20.     return(dir);
  21. }
  22.