Esempio n. 1
0
        public static void ShowPiecesCaptured(GameChess game)
        {
            Console.WriteLine("Pieces captured: ");
            Console.Write("White: ");
            ShowCollectionPieces(game.PiecesCaptured(Color.White));

            ConsoleColor initColor = Console.ForegroundColor;

            Console.WriteLine();
            Console.Write("Black: ");
            Console.ForegroundColor = ConsoleColor.Yellow;
            ShowCollectionPieces(game.PiecesCaptured(Color.Black));
            Console.WriteLine();
            Console.WriteLine();
            Console.ForegroundColor = initColor;
        }