Exemple #1
0
import copy

DOWNLOAD_NEW = False
SIZE = 18
ITERATIONS = 10

CREATE_NEW = False
EDIT_OLD = True
DRAW_LINES = False
loesung = ""

old_folders = ["Dez20", "Jan21", "Feb21"]
old_words = []
for f in old_folders:
    cw = Crossword(30, 30)
    cw.load_grid("intermediate_store.txt", prefix=f + "/")
    for w in cw.get_used_words():
        old_words.append(w)
        # read in old words

if CREATE_NEW:
    dl = DataLoader()
    if DOWNLOAD_NEW:
        dl.load_data_from_web()
        dl.store_to_file("data.pickle")
    dl.load_from_file("data.pickle")
    cats = dl.get_categories()
    words = []
    for c in cats:
        words.extend(c.get_words())