Gralb-Cycler

Authorgralb
Submission date2016-10-05 00:41:11.070712
Rating2932
Matches played394
Win rate25.63

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

Source code:

if input == "":
	rockCount = paperCount = scissorsCount = 0
elif input == "R":
	rockCount += 1
elif input == "P":
	paperCount += 1
elif input == "S":
	scissorsCount += 1

totalCount = rockCount + paperCount + scissorsCount
if(totalCount % 3 == 0):
    output = "R"
elif(totalCount % 3 == 1):
    output = "P"
else:
    output = "S"