Author | oralexam |
Submission date | 2012-07-25 01:29:50.987001 |
Rating | 4949 |
Matches played | 767 |
Win rate | 49.15 |
Use rpsrunner.py to play unranked matches on your computer.
import random
r = random.random()
if r < 1.0/3:
output = "R"
elif r > 1.0/3 and r < 2.0/3:
output = "S"
elif r > 2.0/3:
output = "P"