(self, card_2d)
return self.LUT_2DCARD_2_1DCARD[card_2d[0], card_2d[1]]
Args:
            card_2d (np.ndarray):    array of 2 int8s. [rank, suit]

        Returns:
            int8: 1d representation of card_2d
Args:
            card_2d (np.ndarray):    array of 2 int8s. [rank, suit]
Args : card_2d ( np . ndarray ) : array of 2 int8s . [ rank suit ]
def get_1d_card(self, card_2d):
        """
        Args:
            card_2d (np.ndarray):    array of 2 int8s. [rank, suit]

        Returns:
            int8: 1d representation of card_2d
        """

        if card_2d[0] == Poker.CARD_NOT_DEALT_TOKEN_1D:
            return Poker.CARD_NOT_DEALT_TOKEN_1D
        return self.LUT_2DCARD_2_1DCARD[card_2d[0], card_2d[1]]
def get_1d_card ( self , card_2d ) : if card_2d [ 0 ] == Poker . CARD_NOT_DEALT_TOKEN_1D : return Poker . CARD_NOT_DEALT_TOKEN_1D return self . LUT_2DCARD_2_1DCARD [ card_2d [ 0 ] , card_2d [ 1 ] ]