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
avantce(n) Move n steps forward
recule(n) Move n steps backward
tourneGauche() Turn left over 90 degrees
tourneDroite() 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
ouest(n) Turn to head west and move n steps forward
Paint
peindreEnBlanc() Put the brush with white paint to the ground.
peindreEnNoir() Put the brush with black paint to the ground.
stopPeindre() Stop painting, hide the brush
Grab
prendre() Get the beacon in front of the robot
poser() Put a beacon in front of the robot
Flip coin
hasard() Flip a coin to make a random choice. hasard() will either be true or false.

 

See Left Front Right

 

obstacleAGauche()

rienAgauche()

beaconAGauche()

blancAGauche()

noirAGauche()

obbstacleDevant()

rienDevant()

beaconDevant()

blancDevant()

noirDevant()

obstacleADroite()

rienADroite()

beaconADroite()

blancADroite()

noirADroite()

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