reactions30

AuthorKendallHopkins
Submission date2011-06-09 08:36:00.407150
Rating3091
Matches played5610
Win rate30.77

Use rpsrunner.py to play unranked matches on your computer.

Source code:

import random

rps = ['R','P','S']

if not input:
    output = random.choice(rps)
else:
    output = rps[(rps.index( input ) - rps.index( output )) % 3]