|
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 |
|
左侧是障碍物()
左侧通畅()
左侧是灯塔()
做测试白色()
左侧是黑色() |
前方是障碍物()
前方通畅()
前方是灯塔()
前方是白色()
前方是黑色() |
右侧是障碍物()
右侧通畅()
右侧是灯塔()
右侧是白色()
右侧是黑色() |
| See |
Left |
Front |
Right |
|
左侧是障碍物()
左侧通畅()
左侧是灯塔()
做测试白色()
左侧是黑色() |
前方是障碍物()
前方通畅()
前方是灯塔()
前方是白色()
前方是黑色() |
右侧是障碍物()
右侧通畅()
右侧是灯塔()
右侧是白色()
右侧是黑色() |
|