def applyAction(self, inputEvent, blinds=None, bet=None): if blinds is None: raise ValueError('no blinds specified') if bet is None: raise ValueError('no bet specified') if inputEvent.steps == 0: return None newBet = round(bet * self.multiplier(), 2) return Tc2Config.formatedBet(newBet, blinds=blinds)
def applyAction(self,inputEvent, blinds=None): if blinds is None: raise ValueError('no blinds specified') if inputEvent.steps == 0: return None if self.baseValue() == Tc2Config.BigBlind: newBet = blinds[1] * self.multiplier() * inputEvent.steps elif self.baseValue() == Tc2Config.SmallBlind: newBet = blinds[0] * self.multiplier() * inputEvent.steps else: raise ValueError('can not handle base value: %s' % self.baseValue() ) #TODO: HotkeyMultiplyBlind: round bet to blinds? return Tc2Config.formatedBet(newBet, blinds=blinds)
def applyAction(self, inputEvent, blinds=None): if blinds is None: raise ValueError('no blinds specified') if inputEvent.steps == 0: return None if self.baseValue() == Tc2Config.BigBlind: newBet = blinds[1] * self.multiplier() * inputEvent.steps elif self.baseValue() == Tc2Config.SmallBlind: newBet = blinds[0] * self.multiplier() * inputEvent.steps else: raise ValueError('can not handle base value: %s' % self.baseValue()) #TODO: HotkeyMultiplyBlind: round bet to blinds? return Tc2Config.formatedBet(newBet, blinds=blinds)