static void Main(string[] args) { var deck = new CardDeck(); var card = new Card(); card.Number = Card.GetPictureNumber(CardPicture.K); // card.Number = 10; card.Color = CardColor.Spades; PrintCard(card); for (int i = 0; i < 3; i++) { deck.Shuffle(11 + i); Console.WriteLine("Play deck of " + deck.CardCount() + " cards:"); while (deck.HasCards()) { card = deck.PickCard(); PrintCard(card); } Console.WriteLine("--- // ---"); Console.WriteLine("Well done!"); } Console.ReadKey(); }
static void Main(string[] args) { var deck = new CardDeck(); var card = new Card(Card.CardPicture.K, Card.CardColor.Spades); card.Print(); for (int i = 0; i < 3; i++) { deck.Shuffle(11 + i); System.Console.WriteLine("Play deck of " + deck.CardCount() + " cards:"); while (deck.HasCards()) { card = deck.PickCard(); card.Print(); } System.Console.WriteLine("--- // ---"); System.Console.WriteLine("Well done!"); } System.Console.ReadKey(); }