bitcount

Authorfarter
Submission date2015-08-07 03:47:54.552940
Rating3608
Matches played484
Win rate33.06

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

Source code:

import random

if input=="":
    count=random.randint(0,2147483647)
bc=count
count+=1
bc=(bc&0x55555555)+(bc>>1)
bc=(bc&0x33333333)+(bc>>2)
bc=(bc&0x0f0f0f0f)+(bc>>4)
bc=(bc&0x00ff00ff)+(bc>>8)
bc=(bc&0x0000ffff)+(bc>>16)
output=["R","P","S"][bc%3]