(self, boards_1d, lut_holder)
return hand_ranks
Args:
            boards_1d (np.ndarray(shape=[N, 5], dtype=int8)):   [[c1, c2, c3, c4, c5], [c1, c2, .., c5], ...}

        Returns:
            np.ndarray(shape=[N, RANGE_SIZE], dtype=int32):     hand_rank for each possible hand; -1 for
                                                                blocked on each of the given boards
Args:
            boards_1d (np.ndarray(shape=[N, 5], dtype=int8)):   [[c1, c2, c3, c4, c5], [c1, c2, .., c5], ...}
Args : boards_1d ( np . ndarray ( shape = [ N 5 ] dtype = int8 )) : [[ c1 c2 c3 c4 c5 ] [ c1 c2 .. c5 ] ... }
def get_hand_rank_all_hands_on_given_boards_52_holdem(self, boards_1d, lut_holder):
        """
        Args:
            boards_1d (np.ndarray(shape=[N, 5], dtype=int8)):   [[c1, c2, c3, c4, c5], [c1, c2, .., c5], ...}

        Returns:
            np.ndarray(shape=[N, RANGE_SIZE], dtype=int32):     hand_rank for each possible hand; -1 for
                                                                blocked on each of the given boards

        """
        assert len(boards_1d.shape) == 2
        assert boards_1d.shape[1] == 5
        hand_ranks = np.full(shape=(boards_1d.shape[0], HoldemRules.RANGE_SIZE), fill_value=-1, dtype=np.int32)
        self._clib.get_hand_rank_all_hands_on_given_boards_52_holdem(
            self.np_2d_arr_to_c(hand_ranks),  # int32**
            self.np_2d_arr_to_c(boards_1d),  # int8**
            boards_1d.shape[0],  # int (number of boards)
            self.np_2d_arr_to_c(lut_holder.LUT_IDX_2_HOLE_CARDS),  # int8**
            self.np_2d_arr_to_c(lut_holder.LUT_1DCARD_2_2DCARD)  # int8**
        )
        return hand_ranks
def get_hand_rank_all_hands_on_given_boards_52_holdem ( self , boards_1d , lut_holder ) : assert len ( boards_1d . shape ) == 2 assert boards_1d . shape [ 1 ] == 5 hand_ranks = np . full ( shape = ( boards_1d . shape [ 0 ] , HoldemRules . RANGE_SIZE ) , fill_value = - 1 , dtype = np . int32 ) self . _clib . get_hand_rank_all_hands_on_given_boards_52_holdem ( self . np_2d_arr_to_c ( hand_ranks ) , # int32** self . np_2d_arr_to_c ( boards_1d ) , # int8** boards_1d . shape [ 0 ] , # int (number of boards) self . np_2d_arr_to_c ( lut_holder . LUT_IDX_2_HOLE_CARDS ) , # int8** self . np_2d_arr_to_c ( lut_holder . LUT_1DCARD_2_2DCARD ) # int8** ) return hand_ranks