Author | xyz |
Submission date | 2019-06-08 20:01:08.320589 |
Rating | 3686 |
Matches played | 222 |
Win rate | 39.19 |
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 = "P"
elif input == "P":
output = "S"
elif input == "S":
output = "R"
else:
output = random.choice(["R","P","S"])