If you're seeing this message, it means we're having trouble loading external resources on our website.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
To log in and use all the features of Khan Academy, please enable JavaScript in your browser.
walkForward(numSpaces)
turnLeft()
turnRight()
facingWall()
canTakeCheese()
REPEAT UNTIL ( canTakeCheese() ) { <MISSING CODE> }
walkForward(3) turnRight()
walkForward(1) turnRight() walkForward(1) turnLeft()
turnRight() walkForward(1) turnLeft() walkForward(1)
IF (facingWall()) { turnRight() } ELSE { walkForward(1) }