logic-puzzle-generator 1.3.4 → 1.3.5

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.
@@ -1246,6 +1246,9 @@ class Generator {
1246
1246
  const completenessScore = totalEliminatable > 0 ? (eliminatedSoFar / totalEliminatable) : 0;
1247
1247
  let complexityBonus = 0;
1248
1248
  switch (clueType) {
1249
+ case types_1.ClueType.BINARY:
1250
+ complexityBonus = clue.operator === types_1.BinaryOperator.IS ? 1.5 : 1.0;
1251
+ break;
1249
1252
  case types_1.ClueType.ORDINAL:
1250
1253
  complexityBonus = 1.5;
1251
1254
  if (clue.operator >= 2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logic-puzzle-generator",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,4 +45,4 @@
45
45
  "ts-jest": "^29.1.2",
46
46
  "typescript": "^5.4.5"
47
47
  }
48
- }
48
+ }