public static void DrawGrid(Grid grid) { var count = 0; var output = "\n\t"; foreach (var cell in grid.Cells) { var value = "_"; if (cell.Value.HasValue) { value = cell.Value.Value.ToString(); } output += value + " "; count++; if (count == grid.Length) { output += "\n\t"; count = 0; } } Console.WriteLine(output); Console.WriteLine($"\tSolved: {grid.Solved()}"); }