Ejemplo n.º 1
0
        public PokerHand(PokerCard[] cardArray)
        {
            for (int n = 0; n < cardArray.Length; n++)
            {
                hand[n] = cardArray[n];
            }

            Weight = ComputeWeight();
        }
Ejemplo n.º 2
0
        public PokerHand(string cardData)
        {
            string[] cardStringArray = cardData.Split(' ');
            for (int n = 0; n < cardStringArray.Length; n++)
            {
                hand[n] = new PokerCard(cardStringArray[n]);
            }

            Weight = ComputeWeight();
        }