Author | testilus |
Submission date | 2013-05-01 17:18:08.998794 |
Rating | 2976 |
Matches played | 712 |
Win rate | 28.79 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
k = random.choice(["R","P","S"])
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"])