For my final project in the Codecademy CS101 course I wrote a terminal game of NIM.
What Is NIM?
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.
About This Program
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 here at GitHub.
Top comments (0)