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(); }
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(); }