diff --git a/Project 4 - 21 Rock Paper Scissor/README.md b/Project 4 - 21 Rock Paper Scissor/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/Project 4 - 21 Rock Paper Scissor/main.py b/Project 4 - 21 Rock Paper Scissor/main.py deleted file mode 100644 index d72568b..0000000 --- a/Project 4 - 21 Rock Paper Scissor/main.py +++ /dev/null @@ -1,75 +0,0 @@ -import random - -print("Welcome to ---> Rock Paper Scissor Game <--- ") -print("---------> H U M A N vs C O M P U T E R <---------") -print() -print("***** WINING GAME RULES *****") -print("ROCK vs PAPER --> PAPER WINS\n" - +"ROCK vs SCISSOR--> ROCK WINS\n" - +"PAPER vs SCISSOR --> SCISSOR WINS\n") - -rounds = int(input("Enter Number of Rounds : ")) -userChoice = "" -computerChoice = "" -while(rounds): - rounds = rounds -1 - - choices = ['ROCK', 'PAPER', 'SCISSOR'] - for index, val in enumerate(choices): - print(index+1,"-", val) - - print() - userInput = int(input("Enter your Choice : ")) -1 - match userInput: - case userInput : - userChoice = choices[userInput] - print("Your Choice is : ", userChoice) - - print() - computerInput = random.randint(0, 2) - match computerInput: - case computerInput : - computerChoice = choices[computerInput] - print("Computer Choice is : ", computerChoice) - - print() - if(userChoice == "ROCK" and computerChoice == "PAPER"): - print(f'Computer Choice : {computerChoice} - COMPUTER WINS') - print("Try! Next Time") - - elif(userChoice == "PAPER" and computerChoice == "ROCK"): - print(f'Your Choice : {userChoice} - YOU WIN') - print("Congratulations") - - elif(userChoice == "ROCK" and computerChoice == "SCISSOR"): - print(f'Your Choice : {userChoice} - YOU WIN') - print("Congratulations") - - elif(userChoice == "SCISSOR" and computerChoice == "ROCK"): - print(f'Computer Choice : {computerChoice} - COMPUTER WINS') - print("Try! Next Time") - - elif(userChoice == "SCISSOR" and computerChoice == "PAPER"): - print(f'Your Choice : {userChoice} - You WIN') - print("Congratulations") - - elif(userChoice == "PAPER" and computerChoice == "SCISSOR"): - print(f'Computer Choice : {computerChoice} - COMPUTER WINS') - print("Try! Next Time") - - else: - print("ooooooohh - GAME DRAW") - - again = input("You want to play again yes/no: ") - match again: - case 'yes': - rounds += 1 - case 'no' : - rounds += 0 - print("ROUNDS OVER") - exit() - - - - -