Python program that can play Nim.
Budget: $10 – $30 USD
You are required to modify implementation of the Minimax algorithm (given at this link (https://1drv.ms/u/s!Am2Ks_QNBHs4g8hj8rRzat7Uz717Xg?e=AKBsYR) to create a Python program that can play Nim. Recall that Nim is a two player game played with a number of tokens placed on a table between the two opponents; at each move, the player must divide a pile of tokens into two nonempty piles of different sizes. Thus, 6 tokens may be divided into piles of 5 and 1 or 4 and 2, but not 3 and 3. The first player who can no longer make a move loses the game.
You need to submit a working version of your program, with sample output demonstrating that your program works with different number of tokens.
You need to submit a working version of your program, with sample output demonstrating that your program works with different number of tokens.