Author | jlb |
Submission date | 2011-06-21 21:41:10.595809 |
Rating | 2363 |
Matches played | 5258 |
Win rate | 23.94 |
Use rpsrunner.py to play unranked matches on your computer.
# I'm curious how the bots do against this--there is a simple strategy
# that soundly defeats it. It should do _substantially_ worse than
# random.
import random
if input == "":
choices = ["R", "P", "S"]
# man, screw rock. rock sucks!
choices.remove("R")
output = random.choice(choices)