Author | Inferno |
Submission date | 2011-06-10 17:34:32.861002 |
Rating | 2749 |
Matches played | 5408 |
Win rate | 23.3 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
l = ['R']*random.randrange(1,100) + ['P']*random.randrange(1,100) + ['S']*random.randrange(1,100)
output = l.pop(0)
l.append(output)