home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / education / a / control / solutions / buggy next >
Text File  |  1991-01-02  |  166b  |  13 lines

  1. / A simple solution to the buggy problem
  2.  
  3. beacon 
  4. repeat
  5.   forward 50
  6.   if lefteye >  righteye
  7.   then
  8.     left
  9.   else                
  10.     right
  11.   endif
  12. until arrived
  13.