如果你看到这则信息,这表示下载可汗学院的外部资源时遇到困难.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
要登录及使用可汗学院的所有功能,请在您的浏览器中启用 JavaScript.
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) }
REPEAT UNTIL (condition) { <instructions> }
<instructions>
condition