ToCountsString() public method

public ToCountsString ( ) : string
return string
Example #1
0
        public override string ToString()
        {
            StringBuilder result = new StringBuilder();

            result.AppendLine("Shoe: " + shoe.ToCountsString());
            result.AppendLine();

            result.Append(string.Format("Dealer:   {0,-12} = {1}", dealer_hand, dealer_hand.PointCount()));
            if (dealer_hand.IsNatural())
            {
                result.Append(" (BJ)");
            }
            if (dealer_hand.IsBust())
            {
                result.Append(" (busted)");
            }
            result.AppendLine();

            result.AppendLine();

            result.AppendLine(player_handset.ToString());

            return(result.ToString());
        }