Author | WDIFTL |
Submission date | 2011-06-10 19:51:53.955863 |
Rating | 2036 |
Matches played | 5514 |
Win rate | 18.24 |
Use rpsrunner.py to play unranked matches on your computer.
import random
game = ["P","R","S"]
#Oh, I know what they are going to do, I can beat this
output = game[2]
#somehow... I don't think this is going to work
guess = random.randint(0,2)
#wait.... what if they expect that?
guess = guess+1
if guess > 2:
guess = 0
output = game[guess]
#no, dammit, I'll just stick to my guns
output = game[2]