/// <summary> /// Initializes the counts in a new FastDeck to the card counts in the specified Deck. /// </summary> public FastDeck(Deck deck) { if(deck == null) throw new ArgumentNullException("deck"); Dictionary<int, int> cardCounts = deck.GetCountsOfCards(); cardCounts.TryGetValue(1, out Ones); cardCounts.TryGetValue(2, out Twos); cardCounts.TryGetValue(3, out Threes); }