Exemplo n.º 1
0
        public static PokerHand CreateHand(params Card[] cards)
        {
            var result = new PokerHand();

            result.AddRange(cards);

            return(result);
        }
Exemplo n.º 2
0
        private PokerHand CreateCopy(PokerHand pokerHand)
        {
            Card[] cards = new Card[pokerHand.Count];
            pokerHand.CopyTo(cards);

            PokerHand newPokerHand = new PokerHand();

            newPokerHand.AddRange(cards);
            newPokerHand.Sort();

            return(newPokerHand);
        }