Magic Square
Challenge: In Magic Squares, the sums of the numbers in each row, column, and two main diagonals are the same. In the 3X3 Magic Square on Art Canvas+ Playground, there are three colored circles, with each circle representing a number. Under the Magic Square, there are ten number buttons. The object of the activity is to create an algorithm to calculate the numerical value of each colored circle. Code the VR Robot to fill the correct number button at the canvas bottom with the same color as its corresponding colored circle to indicate the value of each circle.
- Choose and Download the Magic Square activity worksheet as a PNG file from this Google slideshow.
- To learn more about downloading .png files from slideshows, see this article.
- Select the Art Canvas+ Playground and upload the activity worksheet.
- To learn more about uploading images to the Art Canvas+ Playground, see this article.
- Design an algorithm to calculate the numerical value of each colored circle.
- Use the numbers in the Magic Square to calculate the sum of three numbers in a row or in a column. Store the calculated number in a variable.
- Use the variables and the numbers in the Magic Squire to create an expression to calculate the numerical value of each colored circle. Store each calculated number in a variable.
- Use the [print] block to print the calculated numbers to the Print Console.
- Using the VR Pen, drive the VR Robot to color the button of each calculated number the same color as its corresponding colored circle to indicate the value of each circle.
Helpful Hints
- The distance across one number button at the bottom is 200mm.