Skip to main content
Commonmark migration
Source Link

#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

#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

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
added 292 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

#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

#Adaptive Roller

Starts out more aggressive and calms down towards the end of the round.

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
    yield False

#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
edited body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

#Adaptive Roller

Starts out more aggressive and calms down towards the end of the round.

class AdaptiveRoller(Bot):

def make_throw(self, scores, last_round):
    lim = min(self.end_score-scores[self.index], 1422)
    while sum(self.current_throws) < lim:
        yield True
    yield False

#Adaptive Roller

Starts out more aggressive and calms down towards the end of the round.

class AdaptiveRoller(Bot):

def make_throw(self, scores, last_round):
    lim = min(self.end_score-scores[self.index], 14)
    while sum(self.current_throws) < lim:
        yield True
    yield False

#Adaptive Roller

Starts out more aggressive and calms down towards the end of the round.

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
    yield False
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162
Loading