Created
August 14, 2011 17:43
-
-
Save jdubie/1145112 to your computer and use it in GitHub Desktop.
Karel Fills Potholes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//write your karel javascript | |
//code here. | |
function run() { | |
while(frontIsClear()) { | |
fillHole(); | |
} | |
} | |
function fillHole() { | |
move(); | |
turnRight(); | |
move(); | |
putBeeper(); | |
turnLeft(); | |
turnLeft(); | |
move(); | |
turnRight(); | |
move(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment