From 93523a6b78200a6c91dc5898c92f32354bea728f Mon Sep 17 00:00:00 2001 From: Grzegorz Kucmierz Date: Wed, 11 Feb 2026 01:01:53 +0100 Subject: [PATCH] fix: enforce gap between blocks in solver logic --- src/workers/solverWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/solverWorker.js b/src/workers/solverWorker.js index c2080b9..170d4c8 100644 --- a/src/workers/solverWorker.js +++ b/src/workers/solverWorker.js @@ -115,7 +115,7 @@ const solveLineLogic = (lineState, hints) => { return result; } const len = hints[hintCount - 1]; - const maxStart = pos - len; + const maxStart = pos - len - 1; for (let start = maxStart; start >= 0; start--) { if (hasCross(start, start + len)) continue; if (start + len < pos && lineState[start + len] === 1) continue;