C90

AuthorJSoffer
Submission date2011-05-30 00:44:37.299338
Rating2193
Matches played6739
Win rate19.6

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

Source code:

x = 558273                                                                      
                                                                                
def semilla(n): global x; x = n                                                 
                                                                                
def alea():                                                                     
    global x                                                                    
    x = x * 1103515245 + 12345                                                  
    return ((x >> 16) % 32768) % 3                                              
                                                                                
output = ['R', 'P', 'S'][alea()]