コード例 #1
0
        public static void PrintCapturedPiece(ChessMatch chessMatch)
        {
            Console.WriteLine("Captured Pieces");
            Console.Write("White: ");
            PrintByTeam(chessMatch.PieceCapturedByTeam(Coloring.White));
            Console.WriteLine();
            Console.Write("Black: ");
            ConsoleColor standardForegroundColor = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            PrintByTeam(chessMatch.PieceCapturedByTeam(Coloring.Black));
            Console.ForegroundColor = standardForegroundColor;
            Console.WriteLine();
        }