Author | WouterS |
Submission date | 2016-06-20 13:18:49.604680 |
Rating | 5330 |
Matches played | 411 |
Win rate | 53.77 |
Use rpsrunner.py to play unranked matches on your computer.
import random
RPS = ["R","P","S"]
if not input:
output = random.choice(["R","P","S"])
else:
if input == "R":
RPS.append("P")
elif input == "P":
RPS.append("S")
elif input == "S":
RPS.append("R")
output = random.choice(RPS)