Author | zepp |
Submission date | 2019-08-01 13:35:29.032901 |
Rating | 4099 |
Matches played | 239 |
Win rate | 40.17 |
Use rpsrunner.py to play unranked matches on your computer.
import random
# Fixed string from my own play vs dllu1, was breakeven after 400 rounds
fixed= "RPRRSSSSPSSSRRRRSRRPPRSPSRPPRSRSPPPRRPSPPRRPPPRPRRSPPPRRSSPPRRRPSSPPPPRRSSPRSPRPSRPRRRRRRSRPPSPSPSRSSSPPRPPPPRRRRSSRPPRRRRRRSSSPPPRPRSRPPSSPPPSSPSPPSPPRRSPPPPRRSSPSRRSSPPSRSRRPRSSPRRRRRSSSPPSPPPPRRSRPSSSSSSSSPSPPSSPSSRPSPPSRSSPSRRSPPSPRSSSSSRPPSPSRRRSRSSPPPRPSPPRSSPPSRPPRSSSPPRSSRRPPRRRRPPSPSRPRRSSSRRRRSPPPRRRPPSSSPPPRPSRPSRPRSSSSPPSRSSPSSRRRRRRPPRRSSPPSSSSSSPSSPPPSRSPPRRRSRPPRRSPSRSSPSRSSRRPRSSSS"
wins={"P":"R", "S":"P", "R":"S"}
loses={"R":"P", "P":"S", "S":"R"}
asList=list(fixed)
randomStr=''.join(random.sample(asList, len(fixed)))
# Shift the fixed string around, should hopefully be a level ahead of a simple pattern matcher
shifted1=[loses[c] for c in asList]
shifted2=[loses[c] for c in shifted1]
fixedNew=fixed+''.join(shifted1)+''.join(shifted2)
if input == "":
move=0
else:
move+=1
output=fixedNew[move]