Assignment 6: Dr. Nim Game.

Write a program to play Dr. Nim. The game begins with all eight LED's lit. The user and the program take turns turning off either one or two lights. The goal is to have the other player forced into turning off the last light.

The user goes first. The user selects either one or two lights by pushing on the RA1 switch either one or two times. With a pause, the computer then makes its selection. The program should respond to the winning or losing of the game with a happy or sad light display. I leave it to you what those displays might be.

Last Modified: Tue Nov 25 01:01:51 EST 1997