Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
470 B
34
Indexable
Never
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();
    }
}