Created
December 18, 2019 20:45
-
-
Save nicordev/69a46ed1c78815cd3e086ade282ea803 to your computer and use it in GitHub Desktop.
blockly-games labyrinthe
This file contains 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
while (notDone()) { | |
if (isPathLeft()) { | |
turnLeft(); | |
moveForward(); | |
} else { | |
if (isPathForward()) { | |
moveForward(); | |
} else { | |
if (isPathRight()) { | |
turnRight(); | |
} else { | |
turnLeft(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment