Author | rdococ |
Submission date | 2015-03-28 03:31:33.986613 |
Rating | 1980 |
Matches played | 508 |
Win rate | 19.88 |
Use rpsrunner.py to play unranked matches on your computer.
# Bobby Compact 2 Test
# I'm new to this kind of thing...
import random
if input == "R": # Predict S or P.
output = "S"
elif input == "S": # Predict R or P.
output = "P"
elif input == "P": # Predict R or S.
output = "R"
else: # Oops... Big fail.
output = random.choice(["R", "S", "P"])