Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Deck deck1 = new Deck();

            System.Console.WriteLine(deck1.cards);
            Card dealt1card = deck1.dealCard();

            System.Console.WriteLine(dealt1card);
            deck1.resetDeck();
            deck1.shuffleDeck();

            System.Console.WriteLine(deck1.cards);

            Player mike = new Player("Mike");

            mike.drawCard(deck1);
            System.Console.WriteLine(mike.hand);
            mike.drawCard(deck1);

            Card discardedCard = mike.discardCardAtIndex(1);

            System.Console.WriteLine(discardedCard);
        }