Fighter1

This program has been disqualified.


AuthorBMF
Submission date2011-06-10 09:19:17.159409
Rating6756
Matches played5048
Win rate64.84

Source code:

if not input:
 import random
 random.seed()
 from collections import defaultdict
 AMqwCd={}
 for bTVBoE in range(-50,0):
  AMqwCd[bTVBoE]=defaultdict(lambda: {'R':0,'P':0,'S':0})
 AIeYYG=""
DlFyCV=range(max(-len(AIeYYG),-50),0)
for PRWUpX in DlFyCV:
 AMqwCd[PRWUpX][AIeYYG[PRWUpX:]][input]+=1
AIeYYG+=input
sGUbLZ=len(AIeYYG)
QCyZUC = {'R':sGUbLZ,'P':sGUbLZ,'S':sGUbLZ}
for PRWUpX in DlFyCV:
 for rUvJfB,IcpIIQ in AMqwCd[PRWUpX][AIeYYG[PRWUpX:]].iteritems():
  QCyZUC[rUvJfB]+=IcpIIQ
LPvWuI = random.uniform(0,sum(QCyZUC.values()))
for rUvJfB,IcpIIQ in QCyZUC.iteritems():
 LPvWuI-=IcpIIQ
 if LPvWuI<=0:
  output = {'R':'P','P':'S','S':'R'}[rUvJfB]
  break