Beispiel #1
0
        // It will demonstrate on the screen which pieces were captured
        public static void PrintCapturedPieces(ChessMatch match)
        {
            Console.WriteLine("Captured Pieces: ");
            Console.Write("White: ");
            PrintSet(match.CapturedPiecesByColor(Color.White));
            Console.WriteLine();
            Console.Write("Black: ");
            ConsoleColor previousColor = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.DarkBlue;
            PrintSet(match.CapturedPiecesByColor(Color.Black));
            Console.ForegroundColor = previousColor;
            Console.WriteLine();
        }