AAHB / mathdoku

Automatically exported from code.google.com/p/mathdoku
0 stars 0 forks source link

Why is 6- never a clue? #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by grebl...@gmail.com on 23 Dec 2012 at 5:00

GoogleCodeExporter commented 8 years ago
Interesting observation (I hadn't noticed). I had a look at the logic and the 
reason is that when creating a cage, it looks at the two values and if the 
lower number divides neatly (without remainder) into the higher number, it 
makes the cell a "Divide" operation, otherwise a "Subtract".

So the only way to get "6-", would be:
7 & 1
8 & 2
9 & 3

But in all these cases, the lower number divides without remainder into the 
higher number, so it will always be a divide operation i.e.
7 & 1 = 7/
8 & 2 = 4/
9 & 3 = 3/

Original comment by em...@srlee.com on 15 Mar 2013 at 3:23

GoogleCodeExporter commented 8 years ago
Resolved in revision128. Also see attachments for dummy grids generated with 
previous and this new revision. An example of a grid with clue -6 has been 
attached as well.

IMPORTANT: dummy grids are not guaranteed to have one single solution!

Original comment by paul.din...@gmail.com on 17 Mar 2013 at 8:43

Attachments:

GoogleCodeExporter commented 8 years ago
Verified at Revision 132
Generated a 8x8 grid, which had 6- as a clue

Original comment by em...@srlee.com on 20 Mar 2013 at 1:19