fixing small bug

This commit is contained in:
Jonas Weinz 2021-06-23 19:25:51 +02:00
parent 5e6d69835f
commit aca27cdae2

View File

@ -279,7 +279,7 @@ def create_word_grid(w: int, h: int, lang_code: str = "en", target_density=0.5):
for char in word: for char in word:
if char not in locations_cpy or len(locations_cpy[char]) == 0: if char not in locations_cpy or len(locations_cpy[char]) == 0:
# next try: # next try:
get_solution_word(min_length=min_length, max_length=max_length) return get_solution_word(min_length=min_length, max_length=max_length)
location_candidates = locations_cpy[char] location_candidates = locations_cpy[char]