Пример #1
0
        static void Main(string[] args)
        {
            /*
             * Console.OutputEncoding = System.Text.Encoding.Unicode;
             * Card myCard = new Card("Q", "♠", 14);
             * Console.WriteLine(myCard.Value);
             * myCard.Value = 10;
             * Console.WriteLine(myCard.Value);
             * Console.ReadLine();
             */

            Console.OutputEncoding = System.Text.Encoding.Unicode;
            DeckOfCards myDeck = new DeckOfCards();

            myDeck.Shuffle();

            //cycle thru deck
            foreach (Card card in myDeck.Deck)
            {
                Console.WriteLine(card.Value + card.Suit);
            }
            Console.ReadLine();
        }
Пример #2
0
 /// <summary>
 /// Creates a new game of Five Card Draw with a deck of 52 cards.
 /// </summary>
 public FiveCardDraw()
 {
     deckOfCards = new DeckOfCards();
     deckOfCards.Shuffle();
     PlayerHand = new List <Card>();
 }