The game of Nim
This is a well-known game with a number of variants. Thefollowing variant has an interesting winning strategy. Two playersalternately take marbles from a pile. In each move, a playerchooses how many marbles to take. The player must take at least onebut at most half of the marbles. Then the other player takes aturn. The player who takes the last marble loses.
Write a program in which the computer plays against a humanopponent. Generate a random integer between 10 and 100 to denotethe initial size of the pile. Generate a random integer between 0and 1 to decide whether the
PayPal Gateway not configured
PayPal Gateway not configured