Author | testilus |
Submission date | 2013-05-01 15:45:33.379425 |
Rating | 3854 |
Matches played | 718 |
Win rate | 40.39 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
k = random.choice(["R","P","S",input,input,input,input])
if k == "R":
output = random.choice(["R","R","P","S"])
elif k == "P":
output = random.choice(["R","P","P","S"])
elif k == "S":
output = random.choice(["R","P","S","S"])
else:
output = random.choice(["R","P","S"])