Author | curiouscat |
Submission date | 2012-12-20 19:04:50.443186 |
Rating | 1911 |
Matches played | 748 |
Win rate | 19.92 |
Use rpsrunner.py to play unranked matches on your computer.
def most_common(l):
max = 0
maxitem = None
for x in set(l):
count = l.count(x)
if count > max:
max = count
maxitem = x
return maxitem
if input == "": # initialize variables for the first round
history=''
history += 'R'
history += input
output=most_common(history)