combobreaker

This program has been disqualified.


AuthorVexeer
Submission date2011-06-15 23:25:55.215397
Rating4766
Matches played4846
Win rate49.2

Source code:

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)