Basic instructions
In each domain there are a fixed number of basic instructions you may use
to write a program. You're only allowed to use this instructions directly when
writing the script. For our robot the following basic instructions exist:
Move |
forward(n) |
Move n steps forward |
backward(n) |
Move n steps backward |
left |
Turn left over 90 degrees |
right |
Turn right over 90 degrees |
north(n) |
Turn to head north and move n steps forward |
south(n) |
Turn to head south and move n steps forward |
east(n) |
Turn to head east and move n steps forward |
west(n) |
Turn to head west and move n steps forward |
|
Paint |
paintWhite |
Put the brush with white paint to the ground. |
paintBlack |
Put the brush with black paint to the ground. |
stopPainting |
Stop painting, hide the brush |
|
Grab |
pickUp |
Get the beacon in front of the robot |
putDown |
Put a beacon in front of the robot |
|
Flip coin |
flipCoin |
Flip a coin to make a random choice. flipCoin will either be true or false. |
|
See |
Left |
Front |
Right |
|
leftIsObstacle
leftIsClear
leftIsBeacon
leftIsWhite
leftIsBlack |
frontIsObstacle
frontIsClear
frontIsBeacon
frontIsWhite
frontIsBlack |
rightIsObstacle
rightIsClear
rightIsBeacon
rightIsWhite
rightIsBlack |
|