Author | moreda |
Submission date | 2019-05-28 11:57:19.299423 |
Rating | 1638 |
Matches played | 233 |
Win rate | 16.74 |
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"