Author | xyz |
Submission date | 2019-06-08 20:29:41.987172 |
Rating | 4681 |
Matches played | 236 |
Win rate | 47.88 |
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 = random.choice(["R","P","S"])
elif input == "P":
output = random.choice(["R","P","S"])
elif input == "S":
output = random.choice(["R","P","S"])
else:
output = random.choice(["R","P","S"])