Author | xyz |
Submission date | 2019-06-08 22:14:33.528956 |
Rating | 4187 |
Matches played | 240 |
Win rate | 41.25 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "R":
output = "P"
if input == "p":
output = "S"
elif input == "S":
output = "P"
elif input == "P":
output = "S"
if input == "R":
output = "P"
elif input == "S":
output = "R"
elif input == "S":
output = "P"
if input == "p":
output = "S"
elif input == "S":
output = "R"
else:
output = random.choice(["R","P","S"])