Author | freq |
Submission date | 2011-06-09 19:04:46.536843 |
Rating | 1783 |
Matches played | 5645 |
Win rate | 17.01 |
Use rpsrunner.py to play unranked matches on your computer.
if input == "":
output = "R"
R_count = 0
P_count = 0
S_count = 0
elif input == "R":
R_count +=1
if ( R_count >= P_count & R_count >= S_count ):
output == "P"
elif input == "P":
P_count+=1
if ( P_count >= R_count & P_count >= S_count ):
output == "S"
elif input == "S":
S_count+=1
if ( S_count >= P_count & S_count >= R_count ):
output == "R"