random!

Authorffenlivaw
Submission date2016-12-28 14:25:35.569609
Rating4963
Matches played383
Win rate50.91

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

Source code:

import itertools
from random import randint

def init():
    global HTH, rounds, AIwins, humanWins, draws, choiceArr
    HTH = ""
    rounds = 0
    AIwins = 0
    humanWins = 0
    draws = 0
    choiceArr = ["R","P","S"]
    
init()

if input == "":
    output = choiceArr[randint(0,2)]

else:
    output = choiceArr[randint(0,2)]