Let's make it a bit more interesting! How many RECTANGLES are there on a chessboard? Remix this project with a script that calculates the answer correctly, and sets the variable "# of rectangles" to the answer. ℹ️ Note that most important thing is to CALCULATE it correctly. In other words, a project simply setting "# of rectangles" to the correct answer is disqualified. Bonus Challenges: ◾ Try to use as few blocks as possible ◾ Try to make the script as readable as possible ◾ Try to solve it in multiple ways Good luck!
My solution to @papipupepappa's 2nd Chessboard challenge. Done by a logical extension of my 9 block solution to his 1st Challenge (which I didn't share). It uses 12 blocks. Initially I wasn't certain it gave the right answer though, but @ArnoHu got the same result (with a different algorithm), so it MUST be correct! I also added a [Show Counting] button to animate what is actually being counted by my algorithm, which proves it's correct, since it actually draws each one. The animation takes 2 min 24 secs, so be patient.