private string GetFieldCode(Sudoku sudoku, int[] coordinate) { var coordinateString = $"{coordinate[0]}.{coordinate[1]}"; var visibleNumber = sudoku.GetIntegerOfIncompleteArray(coordinate); if (visibleNumber == 0) { visibleNumber = sudoku.GetIntegerOfFilledInArray(coordinate); } var solutionNumber = sudoku.GetIntegerOfCompleteArray(coordinate); string isReadOnlyString = DetermineIfFieldIsReadOnly(sudoku, coordinate).ToString(); var boxID = sudoku.GetBoxNumberOfCoordinate(coordinate); return($"{coordinateString},{visibleNumber},{solutionNumber},{isReadOnlyString},{boxID}"); }