Skip to content

Commit 46eae9d

Browse files
Add files via upload
1 parent e66cd74 commit 46eae9d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

working max n min.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
def rps(a,b):
2+
3+
4+
if (a=="s" and b=="p") or (a=="p" and b=="r") or (a=="r" and b=="s"):
5+
print("A won")
6+
7+
8+
elif a==b :
9+
print("draw")
10+
11+
else:
12+
print("b won")
13+
14+
while True:
15+
16+
a = input("P1--s/r/p/quit")
17+
b = input("P2--s/r/p/quit")
18+
if a == "quit":
19+
break
20+
if b == "quit":
21+
break
22+
rps(a,b)

0 commit comments

Comments
 (0)