Last modified: 2019-10-13
This is a course web page of
David Casperson
Associate Professor
Computer Science
University of Northern British Columbia
This is a course web page of
David Casperson
Associate Professor
Computer Science
University of Northern British Columbia

CPSC 370: Functional and Logic Programming (2010)

Doubling Nim Rules

  1. This is a standard one-pile Nim game, meaning that is a game between two players involving a pile of stones. Players take turns removing stones from the pile, and the player who takes the last stone or stones loses.
  2. The first player on his first move may take between 1 and 4 stones.
  3. Thereafter a player on her turn may take between 1 and twice the number her opponent just took (inclusive).
  4. For play between human opponents, who plays first and the size of the initial pile should be settled by some mutually agreeable method.
The general idea of this game is due to Donald Knuth.

Those who want to know more about the general theory of two-person games should consult Winning Ways for Your Mathematical Plays by Elwyn R. Berlekamp, John H. Conway, and Richard K. Guy. I believe that this can be found in the unbc library.

Home page Semesters Site Map
go back Fall 2010 go forward
2024-12 other links

Software

CPSC 200
Java
Building .jar files
CPSC 370
Blackboard
Books
Course Outline
Policies
Programming Policies
Prolog Resources
Syllabus
David’s Schedule

University Calendar

fall-2024