Skip to content

Commit

Permalink
Bug fix for counting circles.
Browse files Browse the repository at this point in the history
9 was never considered as a valid value due to truncation of integer
values to 8 bits.
  • Loading branch information
sigh committed Aug 21, 2024
1 parent b80b095 commit 8c99db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/solver/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3160,7 +3160,7 @@ SudokuConstraintHandler.CountingCircles = class CountingCircles extends SudokuCo
for (let i = 0; i < numCells; i++) {
if (!(initialGrid[this.cells[i]] &= allowedValues)) return false;
}
this._combinations = new Uint8Array(combinations);
this._combinations = new Uint16Array(combinations);
this._numValues = shape.numValues;

this._exclusionMap = new Uint16Array(this.cells.length);
Expand Down

0 comments on commit 8c99db2

Please sign in to comment.