I was doing a course at coursera and then they gave me this exercise. Nim is the most well-known example of an impartial game, where two players (in this case, you and the machine) alternately take turns in taking objects from several heaps. The only rule is that each player must take at least one object on their turn, but they may take more than one object in a single turn
RULES
In this game you'll define the amount of pieces the game will have and the amount that each player can take in a round. When the amount of pieces reach 0 the game will announce the winner of the round
Modes
The game have two options: Isolated match and Championship
Isolated match
In a isolated match you'll have just one chance to win against the machine
Championship
In a championship match you'll have three chances to win against the machine
I already talked too much soo without futher delay OPEN THE GAME!!!