1_prev

AuthorColin Rice
Submission date2012-11-20 21:57:28.357647
Rating4514
Matches played791
Win rate42.86

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

Source code:

import random

if input=="":
    output = random.choice(['R', 'P', 'S'])
else:
    if input == 'R':
        output = 'P'
    elif input == 'P':
        output = 'S'
    else:
        output = 'R'