Author | JustinF |
Submission date | 2011-06-15 04:10:05.642958 |
Rating | 3754 |
Matches played | 4968 |
Win rate | 34.38 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if not input:
turns = 0
else:
turns += 1
if turns < 300:
output = random.choice(('R', 'P', 'S', 'S'))
elif turns < 525:
output = random.choice(('R', 'P', 'S', 'P'))
elif turns < 693:
output = random.choice(('R', 'P', 'S', 'R'))
elif turns < 819:
output = random.choice(('R', 'P', 'S', 'S'))
elif turns < 913:
output = random.choice(('R', 'P', 'S', 'P'))
elif turns < 983:
output = random.choice(('R', 'P', 'S', 'R'))
else:
output = random.choice(('R', 'P', 'S', 'S'))