#Adaptive Roller
Adaptive Roller
Starts out more aggressive and calms down towards the end of the round.
If it believes it's winning, roll an extra time for safety.
class AdaptiveRoller(Bot):
def make_throw(self, scores, last_round):
lim = min(self.end_score - scores[self.index], 22)
while sum(self.current_throws) < lim:
yield True
if max(scores) == scores[self.index] and max(scores) >= self.end_score:
yield True
while last_round and scores[self.index] + sum(self.current_throws) <= max(scores):
yield True
yield False