© 2020 by </-\> AyranOlckers.

Nime Game - C++

Design and implement a program allowing users to play the game Nim (see https://en.wikipedia.org/wiki/Nim). This is a two-player game played using a number of rows (or stacks) of tokens. Players take turns picking a row, and removing any number of tokens (at least one) from it. The player who removes the last token wins the game (this is what wikipedia refers to as “normal”, as opposed to “misere” play)

 +------------------------------------------------------+
 | |              W  E  L  C  O  M  E                 | |
 +------------------------------------------------------+
"Give a man a program, frustrate him for a day.
 Teach a man to program, frustrate him for a lifetime."
 - Muhammad Waseem

What would you like to do?
+-------------------------------------------------------+
| L | I want to Learn how to play                       |
| C | I want to Play Game where Computer goes first.    |
| H | I want to Play Game where I go first.             |
| Q | Quit NIM                                          |
| ------------------------------------------------------|
|       Simulate Nim   (NIM SUM) aka Bitwise XOR        |
| ------------------------------------------------------|
| Z | Predict Winner if Computer Starts                 |
| X | Predict Winner if Player Starts                   |
+-------------------------------------------------------+
My Choice is:

Language: C++
Purpose: School Project (First Year)
nimg-game2