import random print("Play Rock, Paper, Scissors NOW!") # Initialize score user_score = 0 computer_score = 0 for round_number in range(1, 4): print(f"\nRound {round_number}") move = input("What is your Move [r]Rock, [p]Paper, or [s]Scissors: ").lower() if move not in ['r', 'p', 's']: print("Invalid move") continue # Skip this round if the move is invalid if move == 'r': user_choice = 'Rock' elif move == 'p': user_choice = 'Paper' elif move == 's': user_choice = 'Scissors' # Generate computer's move computer_move = random.randint(1, 3) if computer_move == 1: computer_choice = 'Rock' elif computer_move == 2: computer_choice = 'Paper' elif computer_move == 3: computer_choice = 'Scissors' print("Your move: " + user_choice) print("Computer's move: " + computer_choice) # Determine the winner for this round if user_choice == computer_choice: print("It's a tie!") elif (user_choice == 'Rock' and computer_choice == 'Scissors') or \ (user_choice == 'Paper' and computer_choice == 'Rock') or \ (user_choice == 'Scissors' and computer_choice == 'Paper'): print("You win this round!") user_score += 1 else: print("Computer wins this round!") computer_score += 1 # Final score after 3 rounds print("\nFinal Score:") print(f"You: {user_score}") print(f"Computer: {computer_score}") if user_score > computer_score: print("You win the game!") elif user_score < computer_score: print("Computer wins the game!") else: print("It's a tie game!")