Place your turtle on the starting point and program it using arrays and previous code to reach the end of the path while avoiding unbreakable blocks & destroying others. This is the last learning resource before you are able to start your assessment.
DESCRIPTION
Arrays are similar to variables as they store multiple bits of information that can be called at any given time. You write them at the very start of your code like so eg: (if you were to be building a house) houseDimensions = {2 , 4 , 6 , 8} for a = 1 , houseDimenstions[1] do turtle.forward() end turtle.placeDown() end This line of code will call the first number we had wrote earlier, meaning 2 so the turtle will move forward twice before placing the object down. We use arrays to make code a lot more simple and organised and in turn make the coders job easier while showing skill. *NOTE* when creating the Array the numbers you store must be in between this bracket “{ }” and when you call the array inside the code you must use this bracket “[ ]”. If you use other brackets in the wrong places your code will not work. Complete this course using Arrays primarily.