Lesson 1: Introduction to Programming with Karel
1.1.4: Your First Karel Program
move();
move();
move();
move();
takeBall();
1.1.5: Short Stack
move();
putBall();
putBall();
move();
Lesson 2: More Basic Karel
1.2.4: Make a Tower
/* Tennis Ball Square
* This program has karel place a row of 3 tennis balls
* and move up and face east.
*/
move();
turnLeft();
putBall();
move();
putBall();
move();
putBall();
move();
turnLeft();
turnLeft();
turnLeft();
1.2.5: Pyramid of Karel
putBall();
move();
putBall();
move();
putBall();
turnLeft();
move();
putBall();
turnLeft();
move();
putBall();
turnLeft();
turnLeft();
turnLeft();
, move();
turnLeft();
turnLeft();
turnLeft();
move();
putBall();
Lesson 3: Karel Can't Turn Right
1.3.4: Slide Karel
putBall();
move();
turnRight();
move();
putBall();
turnLeft();
move();
turnRight();
move();
putBall();
turnLeft();
function turnRight() {
turnLeft();
turnLeft();
turnLeft();
}
1.3.5: Fireman Karel
turnRight();
move();
move();
move();
turnLeft();
function turnRight(){
turnLeft();
turnLeft();
turnLeft();
}
Lesson 4: Functions in Karel
1.4.4: Pancakes
makePancakes();
move();
makePancakes();
move();
makePancakes();
move();
function makePancakes(){
move();
putBall();