(self, fraction, player_that_bets)
return total_raise
Turns a ""fraction_of_pot_raise_size"" into a ""number_of_chips"" raise size.
        We calculate the pot as the sum of all sidepots and the mainpot.

        Args:
            fraction:           fraction of pot to bet
            player_that_bets:   any PokerPlayer in self.seats

        Returns:
            int:                number of chips that produces a raise by the given fraction of the pot
def get_fraction_of_pot_raise(self, fraction, player_that_bets):
        """

        Turns a ""fraction_of_pot_raise_size"" into a ""number_of_chips"" raise size.
        We calculate the pot as the sum of all sidepots and the mainpot.

        Args:
            fraction:           fraction of pot to bet
            player_that_bets:   any PokerPlayer in self.seats

        Returns:
            int:                number of chips that produces a raise by the given fraction of the pot
        """
        _player = player_that_bets if isinstance(player_that_bets, PokerPlayer) else self.seats[player_that_bets]
        to_call = self._get_biggest_bet_out_there_aka_total_to_call() - _player.current_bet
        pot_after_call = self.main_pot + sum(self.side_pots) + sum([p.current_bet for p in self.seats]) + to_call

        delta = int(to_call + (pot_after_call * fraction))
        total_raise = delta + _player.current_bet

        return total_raise
def get_fraction_of_pot_raise ( self , fraction , player_that_bets ) : _player = player_that_bets if isinstance ( player_that_bets , PokerPlayer ) else self . seats [ player_that_bets ] to_call = self . _get_biggest_bet_out_there_aka_total_to_call ( ) - _player . current_bet pot_after_call = self . main_pot + sum ( self . side_pots ) + sum ( [ p . current_bet for p in self . seats ] ) + to_call delta = int ( to_call + ( pot_after_call * fraction ) ) total_raise = delta + _player . current_bet return total_raise