#navaznost na verzi 277

program Orbis;

var line, movement, Rychlost;

#define L 1
#define S 2
#define R 3

line:=2;

Rychlost:=15;		# omezeni rychlosti (hlavne pro ladici ucely)

while true
do
  if (LEYE = 0 and REYE = 0 and CEYE = 0) then 
    LMOT:=Rychlost;RMOT:=0;
    line:=2;
    movement:=3;
    continue;
  end;

  if (LEYE = 0 and REYE = 0) then 
    LMOT:=Rychlost;RMOT:=Rychlost;
    line:=2;
    movement:=2;
    continue;
  end;

  if LEYE = 1 then 
    LMOT:=0;RMOT:=Rychlost;			# jed rovne
    line:=1;		# zaznamenej, kdes videl caru
    movement:=1;
    continue;
  end;

  if REYE = 1 then 
    LMOT:=Rychlost;RMOT:=0;
    line:=3;
    movement:=3;
    continue;
  end;

end;
