Exemplo n.º 1
0
        public static void printCapturedPieces(ChessMatch match)
        {
            Console.WriteLine("Captured Pieces: ");
            Console.Write("Whites: ");
            printCollection(match.onlycapturedPieces(Color.White));
            Console.WriteLine();
            Console.Write("Blacks: ");
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Red;
            printCollection(match.onlycapturedPieces(Color.Black));
            Console.ForegroundColor = aux;
            Console.WriteLine();
        }