Author | xyz |
Submission date | 2019-06-08 20:03:33.211859 |
Rating | 1943 |
Matches played | 244 |
Win rate | 21.72 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "R":
output = "S"
elif input == "P":
output = "R"
elif input == "S":
output = "P"
else:
output = random.choice(["R","P","S"])