예제 #1
0
        public static float Calculate(CardSet board)
        {
            CalulateParam param     = new CalulateParam();
            int           boardSize = board.CountCards();
            int           toDeal    = 7 - boardSize;

            CardEnum.Combin(StdDeck.Descriptor, toDeal, board, CardSet.Empty, OnDeal, param);
            return((float)(param.Sum / EnumAlgos.CountCombin(52 - boardSize, toDeal)));
        }
예제 #2
0
 static void OnDeal(ref CardSet hand, CalulateParam p)
 {
     p.Sum += HandValueToOrdinal.GetOrdinal7(CardSetEvaluator.Evaluate(ref hand));
 }