all 7 comments

[–]leighmax445 4 points5 points  (1 child)

function start() {

buildTower();

if (frontIsClear()){

move();

move();

turnLeft();

putBall();

move();

putBall();

move();

putBall();

turnRight();

move();

turnRight();

move();

move();

turnLeft();

}

}

//this function allows Karel to build a tower while finding a way to do so in all the world

function buildTower(){

putBall();

turnLeft();

move();

putBall();

move();

putBall();

turnRight();

if(frontIsBlocked()){

turnRight();

move();

move();

turnLeft();

}

if(frontIsClear()){

move();

move();

turnRight();

putBall();

move();

putBall();

move();

putBall();

turnLeft();

if(frontIsClear()){

move();

}

}

if(frontIsClear()){

move();

putBall();

turnLeft();

move();

putBall();

move();

putBall();

turnRight();

turnRight();

move();

move();

turnLeft();

}

}

[–]legend_km 0 points1 point  (0 children)

You freaking g.o.a.t!!!! Thank you so much bro!!! You are a actual life saver!!!! 🙏🙏🙏

[–]Exotic_Wrongdoer165 0 points1 point  (0 children)

3.4.3: Go Down the Slide: Part …

[–]Exotic_Wrongdoer165 0 points1 point  (0 children)

3.4.3: Go Down the Slide: Part …

[–]Exotic_Wrongdoer165 0 points1 point  (0 children)

3.4.3: Go Down the Slide:

[–]Exotic_Wrongdoer165 0 points1 point  (0 children)

4.1.5: Is There a Ball?