-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject_1v2.py
More file actions
29 lines (26 loc) · 786 Bytes
/
Project_1v2.py
File metadata and controls
29 lines (26 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#On screen welcome message
print("Welcome to Rock Paper Scissors Game")
#Collects user input
# Player_1 = ["Rock", "Paper", "Scissors"]
# Player_2 = ["Rock", "Paper", "Scissors"]
Player_1 = input("Player 1, enter your choice: ")
Player_2 = input("Player 2, enter your choice: ")
#Conditional Statements
if Player_1 == Player_2:
print("It's a tie!")
elif Player_1 == "Rock":
if Player_2 == "Paper":
print("Player_2 Wins")
elif Player_2 == "Scissors":
print("Player_1 Wins")
elif Player_1 == "Paper":
if Player_2 == "Scissors":
print("Player_2 Wins")
elif Player_2 == "Rock":
print("Player_1 Wins")
elif Player_1 == "Scissors":
if Player_2 == "Rock":
print("Player_2 Wins")
elif Player_2 == "Paper":
print("Player_1 Wins")
else: print("Oops! Something went wrong")