(self, normalization_sum)
return player_states
Public Information About Each Player
Public Information About Each Player
Public Information About Each Player
def _get_player_states_all_players(self, normalization_sum):
        """ Public Information About Each Player """
        if (self.N_SEATS == 2) and self._USE_SIMPLE_HU_OBS:
            player_states = []
            for player in self.seats:
                player_states += [
                    player.stack / normalization_sum,
                    player.current_bet / normalization_sum,
                    player.is_allin
                ]

        else:
            player_states = []
            for player in self.seats:
                player_states += [
                    player.stack / normalization_sum,
                    player.current_bet / normalization_sum,
                    player.folded_this_episode,
                    player.is_allin
                ]
                x = [0] * self.N_SEATS
                if player.side_pot_rank > 0:
                    x[int(player.side_pot_rank)] = 1
                player_states += x

        return player_states
def _get_player_states_all_players ( self , normalization_sum ) : if ( self . N_SEATS == 2 ) and self . _USE_SIMPLE_HU_OBS : player_states = [ ] for player in self . seats : player_states += [ player . stack / normalization_sum , player . current_bet / normalization_sum , player . is_allin ] else : player_states = [ ] for player in self . seats : player_states += [ player . stack / normalization_sum , player . current_bet / normalization_sum , player . folded_this_episode , player . is_allin ] x = [ 0 ] * self . N_SEATS if player . side_pot_rank > 0 : x [ int ( player . side_pot_rank ) ] = 1 player_states += x return player_states