Beispiel #1
0
	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)
Beispiel #2
0
 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)
Beispiel #3
0
	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)
Beispiel #4
0
 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)