Sunday, April 13, 2014

Day 8

Learned about "if else" commands and Functions. Completed all 10 puzzles on Stage 13. This was the last lines of code I wrote today.

function fill_stack_of_2_holes() {
  turnLeft();
  for (var count = 0; count < 2; count++) {
    fill();
    moveForward();
  }
  turnRight();
  turnRight();
  for (var count2 = 0; count2 < 2; count2++) {
    moveForward();
  }
  turnLeft();
}

No comments:

Post a Comment