Certainly! Below is a test case generator for the "Kannon-Do" problem. This generator will create multiple datasets with varying values of `n` and ensure that the end of the input is indicated by a single zero line.

```python
import random

def tcgen():
    datasets = []
    num_datasets = random.randint(1, 30)  # The number of datasets (up to 30)
    
    for _ in range(num_datasets):
        n = random.randint(1, 30)
        datasets.append(n)
    
    # Append the terminating zero line
    datasets.append(0)
    
    return datasets

# Example usage
test_cases = tcgen()
for case in test_cases:
    print(case)
```

This test case generator produces a random number of datasets (between 1 and 30), each with a random integer `n` (between 1 and 30), and appends a terminating zero to the end. You can run this generator to create a variety of input scenarios for testing the "Kannon-Do" problem.