World Cup Predictions Part 1

Here is my prediction. What do you think?


Answer to Squares Question

Given a grid that is NxN, how many squares can you make by connecting the dots?

The answer I got is this:

The reason is pretty neat. For an example, let's use a 5x5 grid.

Here is the sum:

1 * (5 − 1)2 + 2 * (5 − 2)2 + 3 * (5 − 3)2 + 4 * (5 − 4)2

Which equals:

1 * 16 + 2 * 9 + 3 * 4 + 4 * 1

Let's start with the first term: 1 * 16. When you have a 2x2 matrix, you can make 1 square. And in a 5x5 matrix, you can make 16 of those squares.

Next is 2 * 9. In a 3x3 matrix you can make 2 squares (as below) and there are 9 places you can do this in a 5x5 matrix.

This continues for 3 * 4 as there are 4 places you can make the 3 squares below.

And finally, you can make 4 squares out of the largest block just one time in a 5x5 square.

I thought this was really interesting and elegant. So the next thing I did was figure out the answer for any matrix of NxM. It is actually pretty simple. The answer for the NxN matrix was the sum of x(N-x)^2 because N-x was the area.. so with an NxM matrix the sum is like this:



The first (and only) program I ever made in Visual Basic was a game called Squares. I was in high school at the time, and didn't even know C, so I just wanted to make something simple and interactive.

In Squares, you have an 8 by 8 grid like a chess board. Players take turns putting their pieces on the board. When their pieces make a square, they get points equal to the area of the square. The game is tricky because squares can be rotated at any angle and are often hard to see. It's quite fun.. I made a simple hotseat version in canvas a while ago to test out canvas (Rendering shadows is slow!). Let me know if any of you are interested and I can show you the game.. if there is enough interest I could make it multiplayer online.

On a 2x2 board, there would only be one possible square. On a 3x3 board, you can make 6 squares.

So the question is, how many can you make on an 8x8 board? How about an NxN board? Or better yet.. an NxM board?? Anyone? :) It actually works out to be a nice clean answer.


The Ultimate Final Lesson

I just had my last lesson at my 2 schools and since I was leaving, I had some extra time, and I really like the schools, I decided to go all out.

The second to last lesson I did a quiz game with questions in 4 categories 'easy', 'medium', difficult', and 'challenge' all color coded white, yellow, blue, and red, respectively.

On a previous lesson before that one, I taught shapes and had each student make their own flag on an A4 piece of paper using shapes and colors.

I then (with some help) copied their flags onto small label stickers and using dollar store poker chips, toothpicks and those things you put under chair legs, I made flags for each student.

Here's a blank flag:

Then I made the game board.

My goal was to make a mountain climbing game where the students draw a card, answer a question and then roll the dice moving up the mountain. Then if they draw an earthquake card, everyone on certain spaces (small areas next to ramps) on the board fall down one level.

I made 4 different sets of cards based on the quiz game (easy, medium, difficult, challenge) and again, color coded them. I used the colors on the game board to indicate which card they had to take. There are multiple paths to the goal (the gold sticker on top) and each path is exactly balanced based on difficulty.

To spice it up I added a rule that says if 2 players land on the same place you can fall from, they have to do rock paper scissors and the loser falls down.

Here's the plan:

The rules are explained on the blackboard:

Finally, after using the game boards, I can take them apart and they stack and fit into my bag to carry to the next school.

It was a lot of work, but very rewarding. I'll leave one board at each school for each class that played and there's one left over for me.