Skip to content

Instantly share code, notes, and snippets.

@nicordev
Created December 18, 2019 20:45
Show Gist options
  • Save nicordev/69a46ed1c78815cd3e086ade282ea803 to your computer and use it in GitHub Desktop.
Save nicordev/69a46ed1c78815cd3e086ade282ea803 to your computer and use it in GitHub Desktop.
blockly-games labyrinthe
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