aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-05-04 18:22:15 +0000
committerSimon Tatham <anakin@pobox.com>2011-05-04 18:22:15 +0000
commite7b2a9dd8d8915802fb69ce2242b1f913b7f3172 (patch)
tree47f2c87bdf33ed221ffcb9c0d8d71df449146e05
parent2efc77d2fde7e53604f8490b57f18a36eec5c4fb (diff)
downloadpuzzles-e7b2a9dd8d8915802fb69ce2242b1f913b7f3172.zip
puzzles-e7b2a9dd8d8915802fb69ce2242b1f913b7f3172.tar.gz
puzzles-e7b2a9dd8d8915802fb69ce2242b1f913b7f3172.tar.bz2
puzzles-e7b2a9dd8d8915802fb69ce2242b1f913b7f3172.tar.xz
Having looked at Keen's clue selection code, I also notice that the
intended behaviour of classifying multiplication clues as low-quality if they only left one possible pair of multiplicands has never actually worked, because I should have compared the possible clue count against 2 rather than 1 since the multiplicands can occur either way round. [originally from svn r9165]
-rw-r--r--keen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keen.c b/keen.c
index 175db55..8d9b6bd 100644
--- a/keen.c
+++ b/keen.c
@@ -931,7 +931,7 @@ done
for (k = 1; k <= w; k++)
if (v % k == 0 && v / k <= w && v / k != k)
n++;
- if (n > 1)
+ if (n > 2)
singletons[j] |= F_MUL;
else
singletons[j] |= F_MUL_BAD;