public static void ImprimirTabuleiro(Tabuleiro tab, bool[,] posPossiveis) { ConsoleColor fundoOriginal = Console.BackgroundColor; ConsoleColor fundoAlterado = ConsoleColor.DarkGray; for (int i = 0; i < tab.Linhas; i++) { Console.Write(8 - i + " "); for (int j = 0; j < tab.Colunas; j++) { if (posPossiveis[i, j]) { Console.BackgroundColor = fundoAlterado; } else { Console.ForegroundColor = fundoOriginal; } Tela.ImprimirPeca(tab.peca(i, j)); } Console.WriteLine(); } Console.WriteLine(" a b c d e f g h"); Console.BackgroundColor = fundoOriginal; }
public static void ImprimirTabuleiro(Tabuleiro tab) { for (int i = 0; i < tab.Linhas; i++) { Console.Write(8 - i + " "); for (int j = 0; j < tab.Colunas; j++) { Tela.ImprimirPeca(tab.peca(i, j)); } Console.WriteLine(); } Console.WriteLine(" a b c d e f g h"); }