-
Notifications
You must be signed in to change notification settings - Fork 0
/
day14_100.py
53 lines (51 loc) · 1.8 KB
/
day14_100.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from getpass import getpass as input
player1 = input("Player 1 = Choose Rock, Paper, Scissors (Enter R,P,S) then press Enter> ")
player2 = input("Player 2 = Choose Rock, Paper, Scissors (Enter R,P,S) then press Enter> ")
print()
if player1 == "R":
print("Player 1 has chosen ", player1, "🪨")
print("--------------------")
if player2 == "R":
print("Player 2 has chosen ", player2, "🪨")
print("It's a tie 👔")
elif player2 == "P":
print("Player 2 has chosen ", player2, "📄")
print("Player 2 wins! 🎉")
elif player2 == "S":
print("Player 2 has chosen ", player2, "✂️")
print("Player 1 wins! 🥳")
else:
print("Invalid move Player 2")
print("Please input only R, P or S. (Uppercase)")
elif player1 == "P":
print("Player 1 has chosen ", player1)
print("--------------------")
if player2 == "R":
print("Player 2 has chosen ", player2, "🪨")
print("Player 1 wins! 🎉")
elif player2 == "P":
print("Player 2 has chosen ", player2, "📄")
print("It's a tie! 👔")
elif player2 == "S":
print("Player 2 has chosen ", player2, "✂️")
print("Player 2 wins! 🥳")
else:
print("Invalid move Player 2")
print("Please input only R, P or S. (Uppercase)")
elif player1 == "S":
print("Player 1 has chosen ", player1)
print("--------------------")
if player2 == "R":
print("Player 2 has chosen ", player2, "🪨")
print("Player 2 wins! 🎉")
elif player2 == "P":
print("Player 2 has chosen ", player2, "📄")
print("Player 1 wins! 🥳")
elif player2 == "S":
print("Player 2 has chosen ", player2, "✂️")
print("It's a tie! 👔")
else:
print("Invalid move Player 2")
print("Please input only R, P or S. (Uppercase)")
else:
print("Please input only R, P or S. (Uppercase)")