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 |
вперед(n) |
Move n steps forward |
назад(n) |
Move n steps backward |
ліворуч() |
Turn left over 90 degrees |
праворуч() |
Turn right over 90 degrees |
північ(n) |
Turn to head north and move n steps forward |
південь(n) |
Turn to head south and move n steps forward |
схід(n) |
Turn to head east and move n steps forward |
захід(n) |
Turn to head west and move n steps forward |
|
| Paint |
фарбуватиБілим() |
Put the brush with white paint to the ground. |
фарбуватиЧорним() |
Put the brush with black paint to the ground. |
зупинитиФарбування() |
Stop painting, hide the brush |
|
| Grab |
взяти() |
Get the beacon in front of the robot |
покласти() |
Put a beacon in front of the robot |
|
| Flip coin |
випадково() |
Flip a coin to make a random choice. випадково() will either be true or false. |
|
| See |
Left |
Front |
Right |
|
ліворучЗайнято()
ліворучПусто()
ліворучМаяк()
ліворучБіле()
ліворучЧорне() |
попередуЗайнято()
попередуПусто()
попередуМаяк()
попередуБіле()
попередуЧорне() |
праворучЗайнято()
праворучПусто()
праворучМаяк()
праворучБіле()
праворучЧорне() |
|