(self, card_1d)
return card_2d
Args:
            card_1d (int):

        Returns:
            np.ndarray(shape=2, dtype=np.int8): 2d representation of card_1d
Args:
            card_1d (int):
Args : card_1d ( int ) :
def _get_2d_card(self, card_1d):
        """
        Args:
            card_1d (int):

        Returns:
            np.ndarray(shape=2, dtype=np.int8): 2d representation of card_1d
        """
        card_2d = np.empty(shape=2, dtype=np.int8)
        card_2d[0] = card_1d // self.rules.N_SUITS
        card_2d[1] = card_1d % self.rules.N_SUITS
        return card_2d
def _get_2d_card ( self , card_1d ) : card_2d = np . empty ( shape = 2 , dtype = np . int8 ) card_2d [ 0 ] = card_1d // self . rules . N_SUITS card_2d [ 1 ] = card_1d % self . rules . N_SUITS return card_2d