from process_nonogram import *


def run_nonograms(test_file):
    """
    Takes a file containing the name of a nonogram files
    per line, and then creates and solves instances of those
    nonograms.
    """

    files = []
    with open(test_file) as f:
        for line in f:
            files.append(line.strip())

    for text in files:
        instance = nonogram_parse(text)
        solve_nonogram(instance, True)

if __name__ == "__main__":

    test_file = "full_test.txt"
    run_nonograms(test_file)
