コード例 #1
0
ファイル: Auction.cs プロジェクト: pboninsk/ComputerBridge
        public override string ToString()
        {
            StringBuilder result = new StringBuilder();

            result.AppendLine("West  North East  South");
            Seats skip = this.Dealer;

            while (skip != Seats.West)
            {
                result.Append("-     ");
                skip = skip.Previous();
            }

            var who = this.Dealer;

            foreach (var item in this.Bids)
            {
                result.Append(item.ToString().PadRight(6));
                if (who == Seats.South)
                {
                    result.AppendLine();
                }

                who = who.Next();
            }

            return(result.ToString());
        }