Better Than Random 3

AuthorMike Bufardeci
Submission date2011-07-02 07:32:28.200058
Rating4989
Matches played4727
Win rate45.89

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

Source code:

from random import choice as p
m={"R":"P","P":"S","S":"R"}
r,b=[],m.keys()
s=[0]*len(b)
while len(r)<101:
    r+=p(b)
for c in r:
    s[b.index(c)]+=1
output=m[b[s.index(max(s))]]