NIM is a game that starts with piles of objects.
Players take turns removing objects from one of the piles.
Whoever removes the last object wins.
I wrote the game to be a player against the computer.
I randomly choose the size of three rows of stars.
The player is then asked if they want to go first.
The player can win but if they make a mistake the program is designed so that the computer will win.
The code can be found at GitHub. https://github.com/acasagranda/Nim-Project