Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 340 Bytes

2.3.3 jumpTheHurdles.md

File metadata and controls

19 lines (18 loc) · 340 Bytes

2.3.3 jumpTheHurdles

void jumpTheHurdles() {
    while (!onBeeper()) {
        turnLeft();
        while (!rightIsClear()) {
            moveForward();
        }
        turnRight();
        moveForward();
        turnRight();
        while (frontIsClear()) {
            moveForward();
        }
        turnLeft();
    }
}