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 |
endavant(n) |
Move n steps forward |
enrera(n) |
Move n steps backward |
esquerra |
Turn left over 90 degrees |
dreta |
Turn right over 90 degrees |
nord(n) |
Turn to head north and move n steps forward |
sud(n) |
Turn to head south and move n steps forward |
est(n) |
Turn to head east and move n steps forward |
oest(n) |
Turn to head west and move n steps forward |
|
Paint |
pintaBlanc |
Put the brush with white paint to the ground. |
pintaNegre |
Put the brush with black paint to the ground. |
noPintis |
Stop painting, hide the brush |
|
Grab |
agafa |
Get the beacon in front of the robot |
deixa |
Put a beacon in front of the robot |
|
Flip coin |
tiraMoneda |
Flip a coin to make a random choice. tiraMoneda will either be true or false. |
|
See |
Left |
Front |
Right |
|
esquerraEsObstacle
esquerraEsLliure
esquerraEsObjecte
esquerraEsBlanc
esquerraEsNegre |
davantEsObstacle
davantEsLliure
davantEsObjecte
davantEsBlanc
davantEsNegre |
dretaEsObstacle
dretaEsLliure
dretaEsObjecte
dretaEsBlanc
dretaEsNegre |
|