Wednesday, December 10, 2014

Hour of Code

Today in Geometry, we learned how important code is, and how we use it everyday. We chose the Frozen characters, and we moved them with different equations of code. One thing I found difficult, was figuring out how many degrees to make each turn. I learned how to place each code into a certain order to make the character move how I want them to. I also enjoyed how the codes got more difficult as you completed each level. Here is one of the codes I put together.
for (var count = 0; count < 90; count++) {
  penColour(colour_random());
  moveForward(100);
  moveBackward(100);
  turnRight(4);
}

No comments:

Post a Comment