Marquette University

Department of Mathematics, Statistics and Computer Science

Wim Ruitenburg's Fall 2016 MATH 1300-101

Last updated: December 2016
Comments and suggestions: Email   wim.ruitenburg@marquette.edu

Finite two-player games

We are familiar with all kinds of board games. Chess, checkers, go, and similar games are examples of two-player games with `full information.' Both players can see the full game situation, contrary to many card games where we may not know the hand of cards held by the other player(s). Below are examples of two-player games with `full information'.

Nim

We are given some piles of pennies, at least one pile, but usually several piles. Two players alternatingly must take pennies from the piles, subject to the following rules: You win when you empty the last pile so that the (losing) player can not make a next move.
Winning strategy: In class we hinted at writing the number of pennies in each pile in binary notation.

The Game of Nimr

Winning Strategies for Nimr


Example Problem(s)

  1. Write the decimal number 45 into binary.
  2. Write the binary number 101110 into decimal.
  3. Suppose we have two piles of pennies in the game of Nim, of sizes 7 and 12. It is your turn. Give a move that keeps you in a winning position.
  4. Suppose we have three piles of pennies in the game of Nim, of sizes 7 and 12 and 7. It is your turn. Give a move that keeps you in a winning position.
  5. Randomly set up 4 piles of up to 10 pennies. Determine if there is a winning strategy, and if so give a first winning move.
  6. Randomly set up 5 piles of up to 20 pennies. Determine if there is a winning strategy, and if so give a first winning move.