Fixed finding words.
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
This commit is contained in:
@@ -239,6 +239,7 @@ class PuzzleGenerator:
|
||||
prev = path[0]
|
||||
for tile in path[1:]:
|
||||
neigbours[prev].add(tile)
|
||||
neigbours[tile].add(prev)
|
||||
prev = tile
|
||||
|
||||
extras = {w: p for w, p in solutions.items() if w not in cover}
|
||||
|
||||
Reference in New Issue
Block a user