Answers
1.1.4: Your First Karel Program ✔️Correct Ans-move();
move();
move();
move();
takeBall();
1.1.5: Short Stack ✔️Correct Ans-move();
putBall();
putBall();
move();
1.2.4: Make a Tower ✔️Correct Ans-move();
putBall();
turnLeft();
move();
putBall();
move();
putBall();
move();
,turnLeft();
turnLeft();
turnLeft();
1.2.5: Pyramid of Karel ✔️Correct Ans-putBall();
move();
putBall();
move();
putBall();
turnLeft();
move();
putBall();
turnLeft();
move();
putBall();
turnLeft();
turnLeft();
turnLeft();
move();
turnLeft();
turnLeft();
turnLeft();
,move();
putBall();
1.3.4: Slide Karel ✔️Correct Ans-putBall();
move();
function turnRight(){
turnLeft();
turnLeft();
turnLeft();
}
turnRight();
move();
putBall();
move();
turnLeft();
move();
putBall();
1.3.5: Fireman Karel ✔️Correct Ans-move();
turnLeft();
move();
move();
, move();
function turnRight() {
turnLeft();
turnLeft();
turnLeft();
}
turnRight();
move();
turnRight();
move();
move();
move();
turnLeft();
1.4.4: Pancakes ✔️Correct Ans-function turnRight() {
turnLeft();
turnLeft();
turnLeft();
}
function turnAround() {
turnLeft();
turnLeft();