Please, use the new Blupi.org website for downloading freely all games.
Home CeeBot Blupi BuzzingCars CoLoBoT
English
Français
Deutsch
 
 
 
 
 
Path Back
extern void object::Path( )
{
  // declare a array :
  float dir[6];

  // read data from info post :
  for ( int i=0 ; i<6 ; i=i+1 )
  {
    dir[i] = receive("Direction"+i);
  }

  // move robot :
  for ( int i=0 ; i<6 ; i=i+1 )
  {
    move(20);
    turn(dir[i]);
  }
}