Exemplo n.º 1
0
            /// <summary>
            ///     <para>Initializes an instance of the <see cref="FullHouseHand"/> class.</para>
            /// </summary>
            /// <param name="threesome">
            ///		The Three of a kind in the full house.
            /// </param>
            /// <param name="pair">
            ///		The Pair in the full house.
            /// </param>
            /// <param name="family">
            ///		The creating hand family.
            /// </param>
            public FullHouseHand(Hand threesome, Hand pair, FullHouseFamily family)
                : base(family)
            {
                cards.AddRange(ThreeOfAKindFamily.GetThreesom(threesome));
                KeyValuePair <Card, Card> pairCards = TwoOfAKindFamily.GetPair(pair);

                cards.Add(pairCards.Key);
                cards.Add(pairCards.Value);
            }
Exemplo n.º 2
0
 /// <summary>
 ///     <para>Initializes an instance of the <see cref="ThreeOfAKindHand"/> class.</para>
 /// </summary>
 /// <param name="triplet">
 ///		The three cards of the same value.
 /// </param>
 /// <param name="highCards">
 ///		The rest of the cards in the hand.
 /// </param>
 /// <param name="family">
 ///		The creating hand family.
 /// </param>
 public ThreeOfAKindHand(List <Card> triplet, IEnumerable <Card> highCards, ThreeOfAKindFamily family)
     : base(family)
 {
     cards.AddRange(triplet);
     cards.AddRange(highCards);
 }