Exemple #1
0
        private static void DisplayCellWithValue(Board board, int row, int col)
        {
            var startRow = 4 * row + 1;
            var startCol = 8 * col + 2;
            var value    = board.GetValue(row, col);

            Console.ForegroundColor = ConsoleColor.Green;

            Console.SetCursorPosition(startCol, startRow);
            Console.Write("┌───┐");

            Console.SetCursorPosition(startCol, startRow + 1);
            Console.Write($"│ {value + 1} │");

            Console.SetCursorPosition(startCol, startRow + 2);
            Console.Write("└───┘");

            Console.ResetColor();
        }