Intro
Nim is a Microsoft Windows compatible version of the ancient marble pick-up game. It is a simple C++ console application running in a DOS window.
Features
- Two play modes: Human vs. Human OR Human vs. Computer
- Variable initial marble pile size
- Three computer mode skill level settings
- Player statistics
- Help file
Game Play
- Two players take turns removing marbles from a pile of marbles. Each player must take at least one and at most half of the remaining marbles. The player who is left with the last remaining marble loses.
- When playing against the computer, the computer can be set to play at one of three skill levels - Easy, Medium, or Difficult.
Easy Mode: the number of marbles selected by the computer is determined at random.
Medium Mode: the computer randomly switches back and forth between Easy and Difficult modes.
Difficult Mode: the number of marbles selected by the computer is determined by a mathematical algorithm. If the computer is allowed to make the first move while playing in Difficult mode, it will always win.
- To view a derivation of the computer mode algorithm, download a copy of the source code.
Screen Shots
-
Menu System
-
Marble Selection
-
Richard Loses
-
Statistics
Source Code
Nim was written in C++.
Download Rodin Concentration
Nim requires no installation and does not modify the system registry. Since this is an executable file, you may need to configure an exemption in your antivirus software in order to download it.
Visual C++ Redistributable Packages
The Nim.exe file should run as is, without the need for additional software. However, if you are attempting to run the game on an old operating system, such as Windows 98, you may need to download a Visual C++ Redistributable Package.