fix: enforce gap between blocks in solver logic

This commit is contained in:
2026-02-11 01:01:53 +01:00
parent 133a676682
commit 7f22aa9198

View File

@@ -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;