Author | ilia10000 |
Submission date | 2012-08-23 17:03:32.660641 |
Rating | 3335 |
Matches played | 798 |
Win rate | 35.84 |
Use rpsrunner.py to play unranked matches on your computer.
from random import choice
if input == "":
output= choice(["R", "S", "P"])
if output == "P":
if input == "S":
output = choice(["S", "R"])
else:
output = output
if output == "S":
if input == "R":
output = choice(["R", "P"])
else:
output = output
if output == "R":
if input == "P":
output = choice(["P", "S"])
else:
output = output