C90 No Mod

AuthorJSoffer
Submission date2011-05-30 02:40:44.501285
Rating2812
Matches played6473
Win rate29.74

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

Source code:

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