Author | Oxnour |
Submission date | 2015-11-13 14:19:28.021119 |
Rating | 5883 |
Matches played | 446 |
Win rate | 58.97 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input:
his.append(input)
else:
his = ["R","P","S"]
beat = {"R":"P","P":"S","S":"R"}
random.shuffle(his)
output = beat[his[0]]