fixedString

Authorzepp
Submission date2019-08-01 13:35:29.032901
Rating4118
Matches played224
Win rate40.18

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

Source code:

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]