89.7k views
4 votes
/*this function represents

*what karel has to do
*/
function start() {
turnLeft();
buildTower();
turnRight();
if(frontIsClear()){
toMove();
}
while(noBallsPresent();
turnLeft();
buildTower();
}
if(frontIsBlocked()){
goBack();
}
}

/*This represents karel is
*putting down the balls for making the tower
*/
function buildTower(){
putBall();
move();
putBall();
move();
putBall();
}

function
move();
turnRight();
move();
move();
turnLeft();
move();
}

i need help finding the issues

2 Answers

4 votes

Answer:

turn right

Step-by-step explanation:

i think sorry if it is wrong

User Ryan Tice
by
4.4k points
3 votes

anything

Step-by-step explanation:

I know what to say this time

User Sardaukar
by
4.4k points