- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRPS.py
More file actions
Latest commit
66 lines (56 loc) · 1.86 KB
/
Copy pathRPS.py
File metadata and controls
66 lines (56 loc) · 1.86 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
print("E P I C 🪨 📄 ✂️ B A T T L E ️ 🪨 📄 ✂️")
print()
print("Select R, P or S")
name1=input("Enter 1st player name: ")
name2=input("Enter 2nd player name: ")
again="yes"
whileagain=="yes":
print()
player1=input("1st player, Enter your selection: ")
player2=input("2nd player, Enter your selection: ")
ifplayer1=="R":
ifplayer2=="R":
print()
print("You both smashed each other with 🪨, So its draw!!")
elifplayer2=="P":
print()
print(name1, "🪨 is smothered by", name2, "📄")
elifplayer2=="S":
print()
print(name1, "🪨 has annihilated ", name2, "✂️")
else:
print()
print("Invalid Move!!")
elifplayer1=="P":
ifplayer2=="P":
print()
print("Two bits of 📄 flap at each other. Dissapointing. Draw!!")
elifplayer2=="R":
print()
print(name2, "🪨 is smothered by", name1, "📄")
elifplayer2=="S":
print()
print(name1, "📄 is cut into tiny pieces by", name2, "✂️")
else:
print()
print("Invalid Move!!")
elifplayer1=="S":
ifplayer2=="S":
print()
print("Ka-Shing! ✂️ bounce off each other like a dodgy sword fight! Draw!!")
elifplayer2=="R":
print()
print("🪨 makes metal-dust out of", name1, "✂️")
elifplayer2=="P":
print()
print(name2, "📄 is cut into tiny pieces by", name1, "✂️")
else:
print()
print("Invalid Move!!")
else:
print()
print("Invalid Move!!")
print()
again=input("Do you want to play again: ")
print()
print("See you soon 👋")