This program has been disqualified.
Author | dllu |
Submission date | 2015-02-01 10:19:30.049543 |
Rating | 3721 |
Matches played | 376 |
Win rate | 42.29 |
# uses built-in python modules for compression as a predictor
import bz2
import zlib
import random
if not input:
s = ''
output = random.choice('RPS')
else:
s += input
zxcv = [len(bz2.compress(s+x,9)) + len(zlib.compress(s+x,9)) for x in 'RPS']
output = 'PSR'[zxcv.index(min(zxcv))]