GR.Gambling.Blackjack.CmdTester.Showdown C# (CSharp) Method

Showdown() public method

public Showdown ( Game game ) : void
game Game
return void
        public override void Showdown(Game game)
        {
            Console.WriteLine("##Showdown##");
            Console.WriteLine("Dealer's hand: " + game.DealerHand + " (" + game.DealerHand.PointCount() + ")");
            Console.WriteLine("Number of splits = " + game.SplitCount);
            int i=0;
            foreach (Hand hand in game.PlayerHandSet)
            {
                if (hand.IsSplit())
                    Console.Write("(S) ");
                Console.WriteLine("Hand " + i + ": " + hand + " (" + hand.PointCount() + ")");
                i++;
            }
        }