This program has been disqualified.
Author | Vexeer |
Submission date | 2011-06-15 23:25:55.215397 |
Rating | 4766 |
Matches played | 4846 |
Win rate | 49.2 |
import random
random.seed()
beat = {'R':'P','P':'S','S':'R'}
outputs = []
count = 0
if count < 10:
output = random.choice(['R','P','S'])
elif count % 10 < 5:
r = outputs.count('R')
p = outputs.count('P')
s = outputs.count('S')
if p < r > s:
output = beat['R']
outputs.append('R')
elif r < p > s:
output = beat['P']
outputs.append('P')
else:
output = beat['S']
outputs.append('S')
else:
output = random.choice(['R','P','S'])
outputs.append(output)