play = input("Start? Y/N ") choice = input("Rock, Paper or Scissors? ") computer_choice = 0 player_score = 0 computer_score = 0 import random while play == "y" : computer_choice = random.randint (1,3) if computer_choice == 1: computer_choice = "Rock" elif computer_choice == 2 : computer_choice = "Paper" elif computer_choice == 3: computer_choice = "Scissors" if choice == computer_choice : print("Draw") print("Player Score =", player_score,"Computer Score =", computer_score) play = input("Start? Y/N ") if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break if play == "n" : break elif choice == "rock" and computer_choice == "scissors" : print("Rock beats Scissors") player_score = player_score + 1 print("Player Score =", player_score,"Computer Score =", computer_score) if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break play = input("Start? Y/N ") if play == "n" : break elif choice == "scissors" and computer_choice == "paper" : print("Scissors beats Paper") player_score = player_score + 1 print("Player Score =", player_score,"Computer Score =", computer_score) if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break play = input("Start? Y/N ") if play == "n" : break elif choice == "paper" and computer_choice == "rock" : print("Paper beats Rock") player_score = player_score + 1 print("Player Score =", player_score,"Computer Score =", computer_score) if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break play = input("Start? Y/N ") if play == "n" : break elif computer_choice == "rock" and choice == "scissors" : print("Rock Beats Scissors") computer_score = computer_score + 1 print("Player Score =", player_score,"Computer Score =", computer_score) if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break play = input("Start? Y/N ") if play == "n" : break elif computer_choice == "scissors" and choice == "paper" : print("Scissors Beats Paper") computer_score = computer_score + 1 print("Player Score =", player_score,"Computer Score =", computer_score) if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break play = input("Start? Y/N ") if play == "n" : break elif computer_choice == "paper" and choice == "rock" : print("Paper Beats Rock") computer_score = computer_score + 1 print("Player Score =", player_score,"Computer Score =", computer_score) if player_score == 3 : print("Game over, Player wins") break if computer_score == 3 : print("Game over, Computer wins") break play = input("Start? Y/N ") if play == "n" : break