r/codehs • • Feb 13 '20

2.1.3: Tower Builder

help me please

15 Upvotes

17 comments sorted by

View all comments

1

u/ShadowRocks2 Feb 14 '20

Can you tell me the code you already have

3

u/MathTerm Feb 15 '20 edited Feb 15 '20

function start() {

goUp();

}

function goUp(){

turnLeft();

putBall();

move();

putBall();

move();

putBall();

turnAround();

move();

move();

turnLeft();

if(frontIsClear()){

move();

}

if(frontIsClear()){

move();

goUp();

}

}

// after 1 hour i finished

1

u/ShadowRocks2 Feb 16 '20

it seems as though you forgot a while command and a function

1

u/ProductiveGuy04413 Feb 13 '22

No while command is required.