Example #1
0
        /**
         * Update equities win, tie, win rank and scoop with given hand values for
         * the given cards.
         */
        internal static void updateMEquities(MEquity[] meqs, OmahaEquity.EquityType eqtype, int[] hivals, String[] cards)
        {
            int hw = MEquityUtil.updateMEquities2(meqs, eqtype, hivals, cards);

            if (hw >= 0)
            {
                meqs[hw].scoopcount++;
            }
        }
Example #2
0
        /// <summary>
        /// Update equities win, tie, win rank and scoop with given hand values for the given cards.
        /// </summary>
        /// <param name="meqs"></param>
        /// <param name="hivals"></param>
        /// <param name="lovals"></param>
        /// <param name="cards"></param>
        internal static void updateMEquitiesHL(MEquity[] meqs, int[] hivals, int[] lovals, String[] cards)
        {
            // high winner
            int hw = MEquityUtil.updateMEquities2(meqs, OmahaEquity.EquityType.HILO_HI_HALF, hivals, cards);
            // low winner
            int lw = MEquityUtil.updateMEquities2(meqs, OmahaEquity.EquityType.HILO_AFLO8_HALF, lovals, cards);

            // have to win hi and low for scoop
            if (hw >= 0 && hw == lw)
            {
                meqs[hw].scoopcount++;
            }
        }