Author | Wild_Chan |
Submission date | 2014-05-01 05:49:34.700552 |
Rating | 4218 |
Matches played | 609 |
Win rate | 41.38 |
Use rpsrunner.py to play unranked matches on your computer.
import random
winners = {'P': 'S', 'R': 'P', 'S': 'R'}
if input == '':
i = 0
output = random.choice(['R', 'P', 'S'])
else:
output = winners[input]