Ejemplo n.º 1
0
 public HandOfCards(string smallRepCards)
 {
     string[] cards = smallRepCards.Split(' ');
     _numCardsToHold = cards.Length;
     _cards = new Card[cards.Length];
     _highCards = new int[cards.Length];
     int i = 0;
     foreach (string card in cards)
     {
         _cards[i++] = new Card(card);
     }
     OrderHandAndCalculate();
 }
Ejemplo n.º 2
0
 public HandOfCards(Card[] cards)
 {
     _numCardsToHold = cards.Length;
     _cards = new Card[cards.Length];
     _highCards = new int[cards.Length];
     int i = 0;
     foreach (Card card in cards)
     {
         _cards[i++] = card;
     }
     OrderHandAndCalculate();
 }