Ejemplo n.º 1
0
 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)));
         }
     }
 }