#-------------------------------------------------------------------------- # Name : Rock Paper Scissors # Purpose : 11DGT # Author: Luke Jones # Created : 1/03/24 # Copyright : © Luke Jones 1/03/24 #-------------------------------------------------------------------------- import random from time import sleep Rock = 1 Scissors = 2 Paper = 3 count = 0 list = ["R", "P", "S"] def rps(): random.shuffle(list) computer_choice = list[0] choice = input("Which do you choose? [R], [P], or [S] ") if computer_choice == choice: print("Its a tie!") rps() elif computer_choice == "R" and choice == "P": print("The computer chose Rock and you chose Paper! Paper wins!") total += 1 print("Welcome to paper scissors rock.") sleep(1)