Example #1
0
        public static void imprimirPecasCapturadas(PartidaDeXadrez partida)
        {
            Console.WriteLine("\nPecas capturadas: ");
            Console.Write("Brancas: ");
            impimirConjunto(partida.pecasCapturadas(Cor.Branca));
            Console.Write("\nPreta: ");
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.DarkRed;
            impimirConjunto(partida.pecasCapturadas(Cor.Preta));
            Console.ForegroundColor = aux;
        }
Example #2
0
        public static void ImprimirPecasCapturadas(PartidaDeXadrez partida)
        {
            Console.WriteLine("  PECAS CAPTURADAS: ");
            Console.Write("  BRANCAS: ");
            ImprimirConjunto(partida.pecasCapturadas(Cor.BRANCA));
            Console.Write("  PRETAS: ");
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            ImprimirConjunto(partida.pecasCapturadas(Cor.PRETA));
            Console.ForegroundColor = aux;
        }
        public static void imprimirPecasCapturadas(PartidaDeXadrez partida)
        {
            Console.WriteLine("Pecas Capturadas: ");
            Console.Write("Brancas: ");
            imprimirConjunto(partida.pecasCapturadas(Cor.Branca));
            Console.WriteLine();
            Console.Write("Pretas: ");
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            imprimirConjunto(partida.pecasCapturadas(Cor.Preta));
            Console.ForegroundColor = aux;
            Console.WriteLine();
        }
Example #4
0
        public static void ImprimirPecasCapturadas(PartidaDeXadrez partidas)
        {
            var aux = Console.ForegroundColor;

            Console.WriteLine("Pecas capturadas");
            Console.Write("Brancas: ");
            Console.ForegroundColor = ConsoleColor.White;
            ImprimirConjunto(partidas.pecasCapturadas(Cor.Branca));
            Console.WriteLine();
            Console.ForegroundColor = aux;
            Console.Write("Pretas: ");
            Console.ForegroundColor = ConsoleColor.Black;
            ImprimirConjunto(partidas.pecasCapturadas(Cor.Preta));
            Console.ForegroundColor = aux;
            Console.WriteLine();
        }
Example #5
0
        public static void imprimirPecasCapturadas(PartidaDeXadrez partida)
        {
            Console.WriteLine("Peças capturadas: ");
            Console.Write("Amarelas: ");
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            imprimirConjunto(partida.pecasCapturadas(Cor.Amarelo));
            Console.ForegroundColor = aux;
            Console.WriteLine();;
            Console.Write("Verdes: ");
            Console.ForegroundColor = ConsoleColor.Green;
            imprimirConjunto(partida.pecasCapturadas(Cor.Verde));
            Console.ForegroundColor = aux;
            Console.WriteLine();
        }