Wednesday, September 12, 2007

Class Info: Karel Commands Summary

Primitive Commands
define
move();
pickbeeper();
putbeeper();
turnleft();
turnoff();

Conditions
frontIsClear();
frintIsBlocked();
leftIsClear();
leftIsBlocked();
rightIsClear();
rightIsBlocked();

facingNorth();
facingSouth();
facingWest();
facingEast();
notFacingNorth();
notFacingSouth();
notFacingWest();
notFacingEast();

nextToABeeper();
notNexttoABeeper();
anyBeepersInBeeperBag();
noBeepersInBeeperBag();

Control Statements
if/else
iterate
while

0 Comments:

Post a Comment

<< Home