Пример #1
0
        public override void NewRound()
        {
            ante = minAnte;
            pointsInThePot = 0;

            player = new BlackjackPlayer ("Dojo Jedi", 200);
            dealer = new BlackjackDealer ();

            pointsInThePot = NumPlayers * ante;

            player.RemovePoints (ante);
            dealer.RemovePoints (ante);

            Stock.RestockDeck ();

            player.DealHand (Stock);
            dealer.DealHand (Stock);
        }
Пример #2
0
        /** Runs the unit test. */
        public override void RunTests()
        {
            Debug.Print("Testing the BlackjackDealer class\n" + CardGame.ConsoleLine ('*') +
                "Creating dealer and printing ToString ()...\n\n");

            var dealer = new BlackjackDealer();
            Debug.WriteLine(dealer);
            //< Debug.Write and Debug.WriteLine will call the dealer.ToString() function. Talk about nifty!!! */

            Debug.WriteLine ("Done testing the BlackjackDealer class...");
        }