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)); }
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; }
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(); }
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(); }
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; }