battlebot20

AuthorOxnour
Submission date2015-11-13 14:19:28.021119
Rating5883
Matches played446
Win rate58.97

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

Source code:

import random

if input:
    his.append(input)
else:
    his = ["R","P","S"]

beat = {"R":"P","P":"S","S":"R"}

random.shuffle(his)

output = beat[his[0]]