(self, total_to_call)
Assumes having total_to_call as self.current_bet is 100% legal and just does it.

        Args:
            total_to_call (int)
Assumes having total_to_call as self.current_bet is 100% legal and just does it.
Assumes having total_to_call as self . current_bet is 100% legal and just does it .
def check_call(self, total_to_call):
        """
        Assumes having total_to_call as self.current_bet is 100% legal and just does it.

        Args:
            total_to_call (int)
        """
        self.has_acted_this_round = True
        delta = int(total_to_call - self.current_bet)
        self.stack -= delta
        self.current_bet = int(total_to_call)  # equal to += delta but is faster

        if self.stack == 0:
            self.is_allin = True
def check_call ( self , total_to_call ) : self . has_acted_this_round = True delta = int ( total_to_call - self . current_bet ) self . stack -= delta self . current_bet = int ( total_to_call ) # equal to += delta but is faster if self . stack == 0 : self . is_allin = True