Monday, September 10, 2007

ICA-CP: 9/10/07

Good afternoon!

We're going to learn a few more Karel commands today. There are two categories of Karel activities: things Karel can do, and things Karel knows. First a reminder about blogs: 100 words minimum and due before the next class begins.

Things Karel can do:
move();
turnleft();
turnoff();
pickbeeper();
putbeeper();

Things Karel knows:
nextToABeeper();
notNextToABeeper();

Decisions we may make for Karel, an example:
if nextToABeeper() {
pickbeeper();
else
move();
}

0 Comments:

Post a Comment

<< Home