C90 Time Seed

AuthorJSoffer
Submission date2011-05-30 00:59:02.885049
Rating2054
Matches played6870
Win rate17.35

Use rpsrunner.py to play unranked matches on your computer.

Source code:

import time                                                                  
                                                                             
x = int(time.time())                                                         
                                                                             
def alea():                                                                                                                                     
    global x                                                                    
    x = x * 1103515245 + 12345                                                  
    return ((x >> 16) % 32768) % 3                                              
                                                                                
output = ['R', 'P', 'S'][alea()]