//From here on its safe just to initialize a new deck since its been proven working. //Toggle deck.Shuffle() to public and remove Shuffle from decks constructor to test this. public static void TestDeckShuffling() { var deck = new Deck(); Console.WriteLine("The unshuffled deck order is:\n" + deck.ToString()); deck.Shuffle(); Console.WriteLine("\nThe shuffled deck order is:\n" + deck.ToString()); Console.ReadKey(); }
public static void TestDrawingAHand() { var deck = new Deck(); deck.Shuffle(); //Creating and printing a hand was known to be working at this time. var hand = new Hand(deck.DrawCards(5)); Console.WriteLine("The drawn cards were: " + hand.ToString()); Console.ReadKey(); }