public Deck() { foreach (CardSuit cardSuit in Enum.GetValues(typeof(CardSuit))) { foreach (CardRank cardRank in Enum.GetValues(typeof(CardRank))) { CardPile.Add(new SpadesCard(Card.ToCardIndex(cardSuit, cardRank))); } } }