Documentation
Basic instructions
Overview
Basic instructions
- move
- paint
- grab
- see
Programming structures
Example scripts
Education
Arabic (العربية) Chinese (中文) Dutch (Nederlands) French (Français) English German (Deutsch) Portuguese (Português) Swedish (Svenska)

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
vorwärts(n) Move n steps forward
rückwärts(n) Move n steps backward
links() Turn left over 90 degrees
rechts() Turn right over 90 degrees
norden(n) Turn to head north and move n steps forward
süden(n) Turn to head south and move n steps forward
osten(n) Turn to head east and move n steps forward
westen(n) Turn to head west and move n steps forward
Paint
maleWeiß() Put the brush with white paint to the ground.
maleSchwarz() Put the brush with black paint to the ground.
beendeMalen() Stop painting, hide the brush
Grab
nimmAuf() Get the beacon in front of the robot
gibAb() Put a beacon in front of the robot
Flip coin
wirfMünze() Flip a coin to make a random choice. wirfMünze() will either be true or false.

 

See Left Front Right

 

linksIstEinHindernis()

linksIstFrei()

linksIstEineSonde()

linksIstWeiß()

linksIstSchwarz()

vorneIstEinHindernis()

vorneIstFrei()

vorneIstEineSonde()

vorneIstWeiß()

vorneIstSchwarz()

rechtsIstEinHindernis()

rechtsIstFrei()

rechtsIstEineSonde()

rechtsIstWeiß()

rechtsIstSchwarz()

RoboMind.net - Copyright © 2005 - 2008 - Arvid Halma