Author | Mihai Maruseac |
Submission date | 2011-06-10 16:22:13.527423 |
Rating | 3430 |
Matches played | 5427 |
Win rate | 30.53 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == '':
output = 'R'
elif random.choice(['k', 'k', 'k', 'k', 'k', 'k', 'o']) == 'k':
output = input
else:
output = random.choice(["R","P","S"])