presented at Code Akron
by Rachel Krantz
moveForward();
moveForward();
moveForward();
moveForward();
turnRight();
moveForward();
moveForward();
turnLeft();
moveForward();
turnRight();
moveForward();
turnRight();
moveForward();
turnLeft();
moveForward();
moveForward();
moveForward();
turnLeft();
moveForward();
for (var count = 0; count < 5; count++) {
moveForward();
}
turnRight();
moveForward();
turnLeft();
moveForward();
moveForward();
moveForward();
turnLeft();
moveForward();
turnRight();
for (var count = 0; count < 5; count++) {
moveForward();
}
for (var count = 0; count < 4; count++) {
moveForward();
}
turnLeft();
for (var count2 = 0; count2 < 5; count2++) {
moveForward();
}
for (var count2 = 0; count2 < 3; count2++) {
for (var count = 0; count < 2; count++) {
moveForward();
}
turnRight();
}
while (notFinished()) {
moveForward();
}
while (notFinished()) {
moveForward();
moveForward();
turnLeft();
}
while (notFinished()) {
moveForward();
turnLeft();
moveForward();
turnRight();
}
while (notFinished()) {
turnRight();
moveForward();
turnLeft();
moveForward();
}
while (notFinished()) {
moveForward();
if (isPathLeft()) {
turnLeft();
}
}
while (notFinished()) {
moveForward();
if (isPathRight()) {
turnRight();
}
}
while (notFinished()) {
moveForward();
if (isPathLeft()) {
turnLeft();
}
}
while (notFinished()) {
moveForward();
if (isPathRight()) {
turnRight();
}
}
while (notFinished()) {
if (isPathForward()) {
moveForward();
} else {
turnLeft();
}
}
while (notFinished()) {
if (isPathForward()) {
moveForward();
} else {
if (isPathRight()) {
turnRight();
} else {
turnLeft();
}
}
}
while (notFinished()) {
if (isPathForward()) {
moveForward();
} else {
if (isPathRight()) {
turnRight();
} else {
turnLeft();
}
}
}
Questions?