Beispiel #1
0
        static void Main(string[] args)
        {
            int x = 1;
            Deck deck = new Deck();
            Suits suits = new Suits();

            while(true)
            {
                if (suits.Diamonds <= 13)
                {

                    deck.AddCard(x);
                    suits.Diamonds++;
                }
                break;
            }
            Console.WriteLine(" = {0}", suits.Diamonds);
        }
Beispiel #2
0
 public void AddCard(Suits cards)
 {
     deck.Add(cards);
 }