Author | xyz |
Submission date | 2019-06-08 19:55:25.104576 |
Rating | 2630 |
Matches played | 229 |
Win rate | 23.14 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "": # initialize variables for the first round
output = random.choice(["R","P","S"])
elif input == "R":
output = "S"
elif input == "P":
output = "R"
elif input == "S":
output = "P"
else:
output = random.choice(["R","P","S"])