Author | Varan |
Submission date | 2011-06-09 07:53:08.585695 |
Rating | 4889 |
Matches played | 5679 |
Win rate | 49.15 |
Use rpsrunner.py to play unranked matches on your computer.
import random
count = random.randrange(1, 10)
choice = random.choice(["R","P","S"])
if(count == 0):
count = random.randrange(1, 10)
choice = random.choice(["R","P","S"])
count -= 1
output = choice;