Example #1
0
        public bool SameSuit(IHand h)
        {
            // Get the first cards suit
            CardSuit s = h.First().Suit;

            // Check all cards against the expected suit
            foreach (ICard card in h)
            {
                if (card.Suit != s)
                {
                    return(false);
                }
            }

            return(true);
        }