mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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]
This commit is contained in:
2
keen.c
2
keen.c
@ -931,7 +931,7 @@ done
|
|||||||
for (k = 1; k <= w; k++)
|
for (k = 1; k <= w; k++)
|
||||||
if (v % k == 0 && v / k <= w && v / k != k)
|
if (v % k == 0 && v / k <= w && v / k != k)
|
||||||
n++;
|
n++;
|
||||||
if (n > 1)
|
if (n > 2)
|
||||||
singletons[j] |= F_MUL;
|
singletons[j] |= F_MUL;
|
||||||
else
|
else
|
||||||
singletons[j] |= F_MUL_BAD;
|
singletons[j] |= F_MUL_BAD;
|
||||||
|
Reference in New Issue
Block a user