C90 Short

AuthorJSoffer
Submission date2011-05-30 02:28:08.363191
Rating1807
Matches played6751
Win rate17.73

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

Source code:

import time                                                                  
                                                                                                                                                
if input == "":                                                              
    x = int(time.time())                                                     
else:                                                                        
    x = x * 1103515245 + 12345                                               
                                                                             
output = ["R", "P", "S"][(x << 16) % 3]