# Stats MAXCHIPS = 21 PlayerOneScore = 0 PlayerTwoScore = 0 # Player Names & Introduction PlayerOneScore = input("What is your name Player 1?") PlayerTwoScore = input("What is your name Player 2?") print("Hello", PlayerOneScore, "&", PlayerTwoScore, "Welcome to the 21 game, your objective is to get the chips down to 0 1st! before the other player does. It is now time to pick the amount of rounds you wanna play!") # How many rounds the player wants to play rounds = int(input("How many rounds would you like to play?")) while rounds > 0: chipsLeft = MAXCHIPS while chipsLeft > 0: print("Chips Left:", chipsLeft) player1_chips_taken = int(input("PlayerOneName" + ", How many chips would you like to take?")) chipsLeft -= player1_chips_taken if chipsLeft < 1: PlayerOneScore = 0 PlayerOneScore += 1 break print("Chips Left:", chipsLeft) player2_chips_taken = int(input("PlayerTwoName" + ", How many chips would you like to take?")) chipsLeft -= player2_chips_taken if chipsLeft < 1: PlayerTwoScore = 0 PlayerTwoScore += 1 break rounds -= 1 if PlayerOneScore > PlayerTwoScore: print("PlayerOneName", "Wins!") elif PlayerOneScore < PlayerTwoScore: print("PlayerTwoName", "Wins!") else: print("It's A Tie!")