Time for some holiday fun! How many squares is there on a chessboard? Remix this project with a script that calculates the answer correctly, and sets the variable "# of squares" to the answer. Note that most important thing is to CALCULATE it correctly. In other words, a project simply setting "# of squares" to the correct answer is disqualified. Sub-Challenges: ◾ Try to use as few blocks as possible. ◾ Try to make the script as readable as possible. Good luck!
9 blocks was the lowest I could get it down to, below is the logic behind the code. the whole chess board is one 8x8 square the next smallest square is 7x7, and there are 4 of those that can fit on the board the next smallest is 6x6, and there are 9 of those on the board the next smallest is 5x5 and there are 16 of those on the board there are 25 4x4 squares 36 3x3 squares 49 2x2 squares and 64 1x1 squares total ends up being the sum of all integers from 1 to 8 squared = 204