# Initialize variables chipsLeft = 20 # Starting number of chips playerOneScore = 0 playerTwoScore = 0 # Main game loop while chipsLeft > 0: # Player 1's turn player1_choice = int(input("Player 1, how many chips do you want to take? ")) chipsLeft -= player1_choice if chipsLeft <= 0: playerOneScore += 1 print("Player 1 wins the round!") break # Player 2's turn player2_choice = int(input("Player 2, how many chips do you want to take? ")) chipsLeft -= player2_choice if chipsLeft <= 0: playerTwoScore += 1 print("Player 2 wins the round!") break # Display the winner if playerOneScore > playerTwoScore: print("Player 1 is the overall winner!") elif playerTwoScore > playerOneScore: print("Player 2 is the overall winner!") else: print("It's a tie!") 12