def Outcome(): # check all combinations if c1 == c2: print('Tie!') elif ((c2== 'Rock' and c1 == 'Paper') or (c2== 'Paper' and c1 =='Scissors') or (c2== 'Scissors' and c1 == 'Rock')): print('Player 1 wins!' ) elif ((c1== 'Rock' and c2 == 'Paper') or (c1== 'Paper' and c2 =='Scissors') or (c1== 'Scissors' and c2 == 'Rock')): print ('Player 2 wins!') while True: n = 0 while n<3: while True: # ask for user input c1 = input ("Player 1: Rock, Paper, or Scissors? ") if c1 == 'Rock' or c1 == 'Paper' or c1 =='Scissors' : break # check passed print("Invalid input") while True: c2 = input("Player 2: Rock, Paper, or Scissors? ") if c2 == 'Rock' or c2=='Paper' or c2 == 'Scissors': break print("Invalid input") n += 1 # increment counter by 1 Outcome() # call outcome function Game = input("Would you like to play again? ") if Game == 'n' or Game == 'N'or Game == 'no' or Game == 'No': break