Class | Robota |
In: |
karel/robota.rb
|
Parent: | Object |
A general framework in which robots of various kinds may be defined. It does not, however, define any instantiable robots. The actions of robots are declared, but not defined here. Also defined is an assertion API that the programmer may use to make assertions about the state of a robot. the requires (above) determine whether the world is graphical or text based.
NORTH | = | NorthDirection.instance |
WEST | = | WestDirection.instance |
SOUTH | = | SouthDirection.instance |
EAST | = | EastDirection.instance |
INFINITY | = | $INFINITY |
World | = | RobotWorld.instance() |
NextDirection | = | {NORTH => WEST, WEST => SOUTH, SOUTH => EAST, EAST => NORTH} |