From a34d63aebe3e63af8bcd65c523ecc3220f928f56 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Thu, 2 Jul 2026 03:42:20 +0200 Subject: [PATCH] Fixed finding words. Signed-off-by: Pavel Kirilin --- zangramru/services/puzzles.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zangramru/services/puzzles.py b/zangramru/services/puzzles.py index 23b270b..01fc1fd 100644 --- a/zangramru/services/puzzles.py +++ b/zangramru/services/puzzles.py @@ -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}