Exemplo n.º 1
0
 public static void imprimirPecasCapturadas(PartidaXadrez partida)
 {
     Console.WriteLine("Peças capturadas: ");
     Console.Write("Brancas:");
     imprimirConjunto(partida.pecasCapturadas(Cor.Branca));
     Console.Write("Pretas: ");
     imprimirConjunto(partida.pecasCapturadas(Cor.Preta));
 }
Exemplo n.º 2
0
        public static void imprimirPecasCapturadas(PartidaXadrez partida)
        {
            Console.WriteLine("\nPecas capturadas:");
            Console.Write("Brancas: ");
            imprimirConjunto(partida.pecasCapturadas(Cor.Branca));
            Console.Write("\nPretas: ");
            ConsoleColor corAntiga = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            imprimirConjunto(partida.pecasCapturadas(Cor.Preta));
            Console.ForegroundColor = corAntiga;
        }
Exemplo n.º 3
0
        public static void ImprimirPecasCapturadas(PartidaXadrez partida)
        {
            Console.WriteLine("Peças Capturadas: ");
            Console.Write("Brancas: ");
            imprimirConjunto(partida.pecasCapturadas(Cor.Branco));
            Console.WriteLine();
            Console.Write("Pretas: ");
            ConsoleColor aux = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            imprimirConjunto(partida.pecasCapturadas(Cor.Preto));
            Console.ForegroundColor = aux;
            Console.WriteLine();
        }
Exemplo n.º 4
0
        private static void imprimirPecasCapturadas(PartidaXadrez partida)
        {
            Console.WriteLine("Peças capturadas:");
            Console.Write("Brancas: ");
            imprimirConjunto(partida.pecasCapturadas(Cor.Branca));
            Console.WriteLine();
            Console.Write("Pretas: ");
            ConsoleColor fundo = Console.ForegroundColor;

            Console.ForegroundColor = ConsoleColor.Yellow;
            imprimirConjunto(partida.pecasCapturadas(Cor.Preta));
            Console.ForegroundColor = fundo;
            Console.WriteLine();
        }
Exemplo n.º 5
0
        private static void ImprimirPecasCapturadas(PartidaXadrez partida)
        {
            Console.WriteLine("Peças Capturadas");

            ConsoleColor aux = Console.ForegroundColor;

            Console.Write("Vermelhas: ");
            Console.ForegroundColor = ConsoleColor.Red;
            imprimirConjunto(partida.pecasCapturadas(Cor.Vermelha));

            Console.ForegroundColor = aux;
            Console.Write("Verdes ");
            Console.ForegroundColor = ConsoleColor.Green;
            imprimirConjunto(partida.pecasCapturadas(Cor.Verde));

            Console.ForegroundColor = aux;
        }