示例#1
0
        public bool IsHandCommunity(Card[] tableCards)
        {
            HandEvaluator communityEval = new HandEvaluator(tableCards);
            int           commVal       = communityEval.Evaluate();

            if (BestHandValue == commVal)
            {
                return(true);
            }
            return(false);
        }
示例#2
0
        public int GetBestHand(Card[] tableCards)
        {
            Card[] unionCards = new Card[7];
            for (int i = 0; i < tableCards.Length; i++)
            {
                unionCards[i] = tableCards[i];
            }
            unionCards[5] = Cards[0];
            unionCards[6] = Cards[1];
            // need to evaluate Hand
            HandEvaluator handEval = new HandEvaluator(unionCards);

            Console.Write(Username + "'s best hand is: ");
            BestHandValue = handEval.Evaluate();

            return(BestHandValue);
        }