Problem : Compute the position values for 0 through 16 for 1-row misere Nim where the legal moves are to take 1, 4, or 5 stones.

n012345678910111213141516
outcome classNPNPNNNNNPNPNNNNN

Problem : Compute the Grundy numbers for 0 through 16 for 1-row normal Nim where the legal moves are to take 1, 4, or 5 stones. Find a winning move (or state that there is none) for the 3-row version of this game when there are 3, 5, and 7 stones in the rows.

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
*0 *1 *0 *1 *2 *3 *2 *3 *0 *1 *0 *1 *2 *3 *2 *3 *0
For 3/5/7, take 1 from any row.

Problem : Find a winning move (or state that there is none) for the following Kayles positions:


Problem : Consider a normal game played with $n$ rows of stones. On each turn, the current player can take any number of stones from any row, or may move any number of stones to the row directly above it (including to a row that has been emptied, not skipping over any row that has not been emptied, and not to a row that never existed).


Problem :


Problem : Consider a solitaire version of Can't Stop with the objective of minimizing the expected number of turns to end the game. Assuming you had the computational resources to handle the large state space, what algorithm would you use to compute the optimal strategy?

We can partition the states based on the total number of spaces advanced by the colored markers, ordered from 0 total spaces on up, and then apply the version of value iteration that works part-by-part in reverse order.

Problem : Consider a press-your-luck solitaire coin-tossing game in which the player flips two coins and scores one point for each head. After each flip, the player can bank the total points and start a new turn, or flip again, except that if any flip ends in two tails, the unbanked points are lost and a new turn starts. The game ends when the player gets to 5 banked points.


Problem : Consider a constant-sum game with payoff matrix $$\left( \begin{array}{ccc} 0 & 2 & -1 \\ 1 & -2 & 0 \\ -2 & 0 & 2 \end{array} \right)$$.


Problem : Find a saddle point and its value for the constant-sum game with payoff matrix $$ \left( \begin{array}{cc} 3 & 2 \\ 0 & 4 \\ \end{array} \right) $$

The inequalities for $X$ are \begin{array}{rcccl} E(X, 1) & = & 3x & \ge & v \\ E(X, 2) & = & 4-2x & \ge & v \\ \end{array} The maximum value of $v$ that is below both lines is at their intersection, which is where $3x = 4 - 2x$, or $x = \frac{4}{5}$, so $X^* = (\frac{4}{5} \frac{1}{5})$.

For $Y$ the inequalities are \begin{array}{rcccl} E(1, Y) &=& y + 2 &\le& v \\ E(2, Y) &=& 4 - 4y &\le& v \\ \end{array} The minimum value of $v$ above both lines is at their intersection, which is where $y + 2 = 4 - 4y$, or $y = \frac{2}{5}$, so $Y^* = (\frac{2}{5} \frac{3}{5})$.

$E(X^*, Y^*) = \frac{12}{5}$.


Problem : Set up the linear program to find a saddle point for the constant-sum game with payoff matrix $$ \left( \begin{array}{ccc} 4 & 7 & 3 \\ 0 & 5 & 4 \\ 10 & 6 & 2 \\ \end{array} \right) $$

There are many possible solutions depending on what transformations you choose to apply. The following is the result of adding 1 to the payoff matrix to make all entries positive and then transforming to eliminate $v$.

Minimize $p_1 + p_2 + p_3$ subject to \begin{array}{rcl} -5p_1 - p_2 - 11p_3 & \le & -1 \\ -8p_1 - 6p_2 - 7p_3 & \le & -1 \\ -4p_1 - 5p_2 - 3p_3 & \le & -1 \\ p_1, p_2, p_3 & \ge & 0 \\ p_1, p_2, p_3 & \le & 1 \\ \end{array}

Minimize $-q_1 - q_2 - q_3$ subject to \begin{array}{rcl} 5q_1 + 8q_2 + 4q_3 & \le & 1 \\ q_1 + 6q_2 + 5q_3 & \le & 1 \\ 11q_1 + 7q_2 + 3q_3 & \le & 1 \\ q_1, q_2, q_3 & \ge & 0 \\ q_1, q_2, q_3 & \le & 1 \\ \end{array}