Author | rdococ |
Submission date | 2015-03-28 03:29:06.873051 |
Rating | 4597 |
Matches played | 488 |
Win rate | 46.11 |
Use rpsrunner.py to play unranked matches on your computer.
# Bobby Compact 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"
output = random.choice(["R", "S", "P"])