Author | Mike Bufardeci |
Submission date | 2011-06-10 23:30:30.394274 |
Rating | 4823 |
Matches played | 5114 |
Win rate | 48.18 |
Use rpsrunner.py to play unranked matches on your computer.
'''
Updates:
-Removed some randomness.
-Made better than random (hopefully).
-Removed hobo blood dependency.
'''
import random as c
p = [("R","P"),("P","S"),("S","R")]
r = c.choice(["R","P","S"])
for x in p:
if r == x[0]:
output = x[1]