Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Deck deck = new Deck();

            Player riker = new Player("Riker");

            deck.Shuffle();

            deck.ReadDeck();

            // deck.Deal();
            // deck.Deal();
            // deck.Deal();
            // deck.Deal();

            riker.Draw(deck, riker);
            riker.Draw(deck, riker);
            riker.Draw(deck, riker);
            riker.Draw(deck, riker);
            riker.Draw(deck, riker);

            System.Console.WriteLine(riker.Hand);
            // deck.Reset();

            deck.ReadDeck();
        }
        static void Main(string[] args)
        {
            Deck newdeck = new Deck();

            newdeck.ReadDeck();
            newdeck.Deal();
            newdeck.ReadDeck();
            newdeck.Shuffle();
            System.Console.WriteLine("*********");
            // newdeck.Shuffle();
            Player Jason = new Player("Jason");

            Jason.Draw(newdeck);
            Jason.Draw(newdeck);
            Jason.Draw(newdeck);
            Jason.Draw(newdeck);
            Jason.Draw(newdeck);
            foreach (Card card in Jason.Hand)
            {
                System.Console.WriteLine(card.stringVals);
            }
        }