Author | Inferno |
Submission date | 2011-06-10 17:20:06.263902 |
Rating | 4490 |
Matches played | 5430 |
Win rate | 46.26 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
l = {'R':'P', 'P':'S', 'S':'R'}
m = ['R', 'P', 'S']
else:
if l[last] == input:
m.append(input)
output = random.choice(m)
last = output