Author | gafe |
Submission date | 2014-10-11 11:06:28.998905 |
Rating | 3055 |
Matches played | 566 |
Win rate | 31.98 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
output = random.choice(["R","P","S"])
if input == "R" :
output = random.choice(["P","S"])
if input == "P" :
output= random.choice(["R","S"])
if input == "S" :
output=random.choice(["S","R"])