Created
November 17, 2015 19:06
-
-
Save afelicioni/ae2f084880589fbb4b61 to your computer and use it in GitHub Desktop.
Broken Blocky over final level at UC3Mx: IT.1.1x Introduction to Programming with Java - Part 1: Starting to Code with Java
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(); | |
if (isPathForward()) { | |
moveForward(); | |
} else { | |
turnLeft(); | |
turnLeft(); | |
} | |
} else { | |
turnRight(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with 6 blocks