HarryChoi's first code

AuthorHarry Choi
Submission date2017-11-30 22:31:26.728080
Rating4523
Matches played310
Win rate46.45

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

Source code:

import random

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

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

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

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