Author | BoxFish |
Submission date | 2013-06-17 23:10:12.591451 |
Rating | 3713 |
Matches played | 680 |
Win rate | 35.44 |
Use rpsrunner.py to play unranked matches on your computer.
import random
#Simple program to test system release 3
if (input == ""):
rCount = 0;
sCount = 0;
pCount = 0;
if (input == "R"):
rCount = rCount + 1;
elif (input == "S"):
sCount = sCount + 1;
elif (input == "P"):
pCount = pCount + 1;
if ((rCount >= sCount) and (rCount >= pCount)):
output = "P";
elif ((sCount >= rCount) and (sCount >= pCount)):
output = "R";
elif ((pCount >= rCount) and (pCount >= sCount)):
output = "S";