Unit 3, Lesson 6, Puzzle 2 Code
function turnAround() {
turnLeft();
turnLeft();
}
function right() {
turnLeft();
turnLeft();
turnLeft();
}
function tDrawingUP() {
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingUP();
function tDrawingRIGHT() {
right();
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingRIGHT();
function tDrawingDOWN() {
right();
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingDOWN();
function tDrawingLEFT() {
right();
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingLEFT();
right();
turnLeft();
turnLeft();
}
function right() {
turnLeft();
turnLeft();
turnLeft();
}
function tDrawingUP() {
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingUP();
function tDrawingRIGHT() {
right();
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingRIGHT();
function tDrawingDOWN() {
right();
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingDOWN();
function tDrawingLEFT() {
right();
moveForward();
moveForward();
moveForward();
turnAround();
moveForward();
turnLeft();
moveForward();
turnAround();
moveForward();
moveForward();
turnAround();
moveForward();
right();
moveForward();
moveForward();
turnAround();
}
tDrawingLEFT();
right();
Comments
Post a Comment