Untitled

 avatar
unknown
plain_text
4 years ago
470 B
36
Indexable
function start() {
    
    while(noBallsPresent()){
        buildTower1();
        descendTower();
        noCrash();
        

    }

}

function buildTower1(){
    putBall();
    turnLeft();
    move();
    putBall();
    move();
    putBall();
}

function descendTower(){
    if(frontIsClear()){
        turnAround();
        move();
        move();
        turnLeft();
    }
}
    
function noCrash(){
    if(frontIsClear()){
        move();
        move();
    }
}
Editor is loading...