(self, deck_state_dict=None)
return self._get_current_step_returns(is_terminal=False, info=[False, None])
Resets the state of the game to the standard beginning of the episode. If specified in the args passed,
        stack size randomization is applied in the new episode. If deck_state_dict is not None, the cards
        and associated random variables are synchronized FROM the given environment, so that when .step() is called on
        each of them, they produce the same result.

        Args:
            deck_state_dict:       Optional.
                                            If an instance of a PokerEnv subclass is passed, the deck, holecards, and
                                            board in this instance will be synchronized from the handed env cls.
Resets the state of the game to the standard beginning of the episode. If specified in the args passed,
        stack size randomization is applied in the new episode. If deck_state_dict is not None, the cards
        and associated random variables are synchronized FROM the given environment, so that when .step() is called on
        each of them, they produce the same result.
Resets the state of the game to the standard beginning of the episode . If specified in the args passed stack size randomization is applied in the new episode . If deck_state_dict is not None the cards and associated random variables are synchronized FROM the given environment so that when . step () is called on each of them they produce the same result .
def reset(self, deck_state_dict=None):
        """
        Resets the state of the game to the standard beginning of the episode. If specified in the args passed,
        stack size randomization is applied in the new episode. If deck_state_dict is not None, the cards
        and associated random variables are synchronized FROM the given environment, so that when .step() is called on
        each of them, they produce the same result.

        Args:
            deck_state_dict:       Optional.
                                            If an instance of a PokerEnv subclass is passed, the deck, holecards, and
                                            board in this instance will be synchronized from the handed env cls.
        """
        if self.IS_FIXED_LIMIT_GAME:
            if self.BIG_BLIND > 0:
                self.n_raises_this_round = 1  # big blind counts, but in ante-only games like LEDUC it doesn't count
            else:
                self.n_raises_this_round = 0

        # reset table
        self.side_pots = [0] * self.N_SEATS  # chip count in side pots
        self.main_pot = 0  # chip count in main pot
        self.board = self._get_new_board()
        self.last_action = [None, None, None]  # list of 3 ints: [action_idx, _raise_amount, player.seat_id]
        self.current_round = self.ALL_ROUNDS_LIST[0]
        self.capped_raise.reset()
        self.last_raiser = None
        self.n_actions_this_episode = 0

        # players
        for p in self.seats:
            p.reset()

        # reset deck
        self.deck.reset()

        # start new game
        self._post_antes()
        self._put_current_bets_into_main_pot_and_side_pots()  # antes don't count to current bet
        self._post_small_blind()
        self._post_big_blind()
        self.current_player = self._get_first_to_act_pre_flop()
        self._deal_next_round()

        # optionally synchronize random variables from another env
        if deck_state_dict is not None:
            self.load_cards_state_dict(cards_state_dict=deck_state_dict)

        return self._get_current_step_returns(is_terminal=False, info=[False, None])
def reset ( self , deck_state_dict = None ) : if self . IS_FIXED_LIMIT_GAME : if self . BIG_BLIND > 0 : self . n_raises_this_round = 1 # big blind counts, but in ante-only games like LEDUC it doesn't count else : self . n_raises_this_round = 0 # reset table self . side_pots = [ 0 ] * self . N_SEATS # chip count in side pots self . main_pot = 0 # chip count in main pot self . board = self . _get_new_board ( ) self . last_action = [ None , None , None ] # list of 3 ints: [action_idx, _raise_amount, player.seat_id] self . current_round = self . ALL_ROUNDS_LIST [ 0 ] self . capped_raise . reset ( ) self . last_raiser = None self . n_actions_this_episode = 0 # players for p in self . seats : p . reset ( ) # reset deck self . deck . reset ( ) # start new game self . _post_antes ( ) self . _put_current_bets_into_main_pot_and_side_pots ( ) # antes don't count to current bet self . _post_small_blind ( ) self . _post_big_blind ( ) self . current_player = self . _get_first_to_act_pre_flop ( ) self . _deal_next_round ( ) # optionally synchronize random variables from another env if deck_state_dict is not None : self . load_cards_state_dict ( cards_state_dict = deck_state_dict ) return self . _get_current_step_returns ( is_terminal = False , info = [ False , None ] )