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();

Comments

Popular posts from this blog

Reflection on Blown to Bits Chapter 1

Ghost in the Machine reflection (Blown to Bits p. 73-88)

Homework Day 3: Computing Innovations