Author | ccvera |
Submission date | 2011-06-03 16:43:02.816945 |
Rating | 3401 |
Matches played | 6036 |
Win rate | 28.91 |
Use rpsrunner.py to play unranked matches on your computer.
if input=="": # initialize variables for the first round
rockCount = paperCount = scissorsCount = totalCount = 0
elif input == "R":
rockCount += 1
elif input == "P":
paperCount += 1
elif input == "S":
scissorsCount += 1
totalCount += 1
import random
output = random.choice(["R","P",random.choice(["S","R"])])