Author | JSoffer |
Submission date | 2011-05-30 00:59:02.885049 |
Rating | 2054 |
Matches played | 6870 |
Win rate | 17.35 |
Use rpsrunner.py to play unranked matches on your computer.
import time
x = int(time.time())
def alea():
global x
x = x * 1103515245 + 12345
return ((x >> 16) % 32768) % 3
output = ['R', 'P', 'S'][alea()]