The game Upright is played by two players on an board of squares and has the following rules:
If and can each be any number between 1 and 20 inclusive, for how many of the 400 possible game board sizes can the second player win if both players play optimally?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If n > 1 , then the first player has a winning strategy (i.e. if he uses that strategy, he will surely win. Strategy: At every move, move it to the most right square of that row. Reasoning: Starting at the first move, the first player would put the kangaroo to the most right square of the first row. The 2nd player is forced to move it to the leftmost square of the 2nd row. The first player then moves it to the rightmost square of the 2nd row and so on, until the first player moves it to the rightmost square of the top row, where the 2nd player has no more legal moves, and the first player wins.
Thus, the only way for the 2nd player to have a chance to win is for n to be 1. Each player is forced to move the kangaroo to the next row above it, so there would be only m − 1 moves in that game. The 2nd player will win if the game finished in an even number of moves, so m − 1 must be even for the 2nd player to win the game. Since m is from 1 to 20, for m − 1 to be even, m has to be odd. There are 1 0 odd numbers from 1 to 2 0 . Thus, there are 1 0 game board sizes that the second player can win.