예제 #1
0
        public static void PrintCatchedPieces(ChessMatch match)
        {
            Console.WriteLine("Catched pieces:");

            Console.Write("White: ");
            PrintGroup(match.CatchedPiecesByColor(Color.White));
            Console.WriteLine();

            Console.Write("Black: ");
            var oldColor = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            PrintGroup(match.CatchedPiecesByColor(Color.Black));
            Console.ForegroundColor = oldColor;
            Console.WriteLine();
        }