logic-puzzle-generator 1.3.3 → 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