Beispiel #1
0
        public static void PrintCapturetedPieces(ChessMatch chessMatch)
        {
            Console.WriteLine("Captureted Pieces: ");
            Console.Write("Whites: ");
            PrintHashset(chessMatch.CapturetedPieces(Color.White));
            Console.WriteLine();
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write("Blacks: ");
            PrintHashset(chessMatch.CapturetedPieces(Color.Black));
            Console.ForegroundColor = aux;
            Console.WriteLine();
        }