logic-puzzle-generator 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -503,8 +503,14 @@ class Solver {
503
503
  item2Val: clue.targetVal,
504
504
  ordinalCat: clue.ordinalCat
505
505
  };
506
- deductions += this.applyOrdinalClue(grid, lowerClue, reasons);
507
- deductions += this.applyOrdinalClue(grid, upperClue, reasons);
506
+ let loopDeductions = 0;
507
+ do {
508
+ loopDeductions = 0;
509
+ const d1 = this.applyOrdinalClue(grid, lowerClue, reasons);
510
+ const d2 = this.applyOrdinalClue(grid, upperClue, reasons);
511
+ loopDeductions = d1 + d2;
512
+ deductions += loopDeductions;
513
+ } while (loopDeductions > 0);
508
514
  return deductions;
509
515
  }
510
516
  applyBinaryClue(grid, clue, reasons) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logic-puzzle-generator",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"