Author | miette |
Submission date | 2011-07-14 13:52:43.616935 |
Rating | 3276 |
Matches played | 4266 |
Win rate | 28.41 |
Use rpsrunner.py to play unranked matches on your computer.
import random
if input == "":
output = "P"
elif random.random > 0.5:
output = input
else:
output = random.choice(["R","P","S"])