SabotageCampers - Python
def choose(rounds, players, previous):
if rounds<3:
return 1
prevchoices=[int(i) for i in " ".join(previous[-5:]).split(" ")]
remove=[]
for i in prevchoices:
if prevchoices.count(i)<3:
remove.append(i)
campers=[i for i in prevchoices if i not in remove]
return random.choice(campers)
The campers are still winning. Let me know if you have any suggestions for this.