예제 #1
0
        public static void Main()
        {
            Deck deck = new Deck();

            var card = deck.PickRandomCard();

            Console.WriteLine(card.GetFullName());
            Console.ReadLine();
        }
예제 #2
0
        public static void Main()
        {
            // Create a deck cards.
            Deck deck = new Deck();

            // Draw a card.
            var card = deck.PickRandomCard();

            // Show the value.
            Console.WriteLine(card.GetFullName());

            List <Card> kingCards = deck.GetCardsOfFaceValue(FaceValue.King);

            Console.WriteLine();
            Console.ReadLine();
        }