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