(self, all_non_all_in_and_non_fold_p, all_nonfold_p)
return True
util function used in ._step()
util function used in ._step()
util function used in . _step ()
def _should_continue_in_this_round(self, all_non_all_in_and_non_fold_p, all_nonfold_p):
        """ util function used in ._step() """

        # only 1 player did not fold yet
        if len(all_nonfold_p) < 2:
            return False

        largest_bet = max([p.current_bet for p in self.seats])
        if len([p for p in all_nonfold_p if p.is_allin or p.current_bet == largest_bet]) == len(all_nonfold_p) \
            and len([p for p in all_non_all_in_and_non_fold_p if not p.has_acted_this_round]) == 0:
            return False
        return True
def _should_continue_in_this_round ( self , all_non_all_in_and_non_fold_p , all_nonfold_p ) : # only 1 player did not fold yet if len ( all_nonfold_p ) < 2 : return False largest_bet = max ( [ p . current_bet for p in self . seats ] ) if len ( [ p for p in all_nonfold_p if p . is_allin or p . current_bet == largest_bet ] ) == len ( all_nonfold_p ) and len ( [ p for p in all_non_all_in_and_non_fold_p if not p . has_acted_this_round ] ) == 0 : return False return True