Skip to content

Commit 4d6b1e7

Browse files
committed
comment
1 parent 57639ec commit 4d6b1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/2025/day12.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function solvable(area) {
3939
for (let x = 0; x <= area.space[0].length - rotation[0].length; x++) {
4040
let space = place(area.space, rotation, x, y);
4141
if (!space) continue;
42-
if (++count > 20) return false;
42+
if (++count > 20) return false; // 20 placements tried, give up
4343
if (solvable({ space, shapes: area.shapes.slice(1) })) {
4444
return true;
4545
}

0 commit comments

Comments
 (0)