RoBOTL

DefineInitialBeepers definition


DefineInitialBeepers expression ;

This defines the number of beepers (as indicated by the expression) to place in the robot's beeper bag when a robot of this type (as being defined by the NewRobotType definition) is created with a new statement.
The DefineInitialBeepers definition can also be specified using define_initial_beepers.
Example:
define
{
   NewRobotType beeper_bot
   {
      IsLikeA basic_bot;
      DefineInitialBeepers 5;
      DefineNewInstruction turnright as
      {
         iterate 3 times TurnLeft;
      }
   }
}
execute
{
   new beeper_bot kathy at 5,4;
   tell kathy: turnright;
}

Other definitions:
You can also go:

Created on 19 June 1995
Last revised 20 August 1996
Copyright ©1995,1996 Walter S. Ching, n1hbr@ma.ultranet.com