777

Authorevolvingstuff
Submission date2011-06-09 20:23:25.387471
Rating6001
Matches played5549
Win rate59.18

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

Source code:

import random
if input == "":
    count = [7,7,7]
elif input == "R":
    count[0] += 1
elif input == "P":
    count[1] += 1
elif input == "S":
    count[2] += 1
if random.randint(1,sum(count)) <= count[0]:
    output = "P"
elif random.randint(1,sum(count[1:])) <= count[1]:
    output = "S"
else:
    output = "R"