champagne wrote:So, the problem could show up again with another puzzle.
what would you suggest regarding that game??
The "bug" is not going to be fixed any time soon, so ... play on.
champagne wrote:I suspect that the floating point is not the problem.
I would more think of an uninitialized data with 2 different initial values.
wikipedia wrote:Java does not have uninitialized variables. Fields of classes and objects that do not have an explicit initializer and elements of arrays are automatically initialized with the default value for their type (false for boolean, 0 for all numerical types, null for all reference types).[2] Local variables in Java must be definitely assigned to before they are accessed, or it is a compile error.
gsf wrote:::: comment :::champagne wrote:I suspect that the floating point is not the problem.
I would more think of an uninitialized data with 2 different initial values.
se is coded in javawikipedia wrote:Java does not have uninitialized variables. Fields of classes and objects that do not have an explicit initializer and elements of arrays are automatically initialized with the default value for their type (false for boolean, 0 for all numerical types, null for all reference types).[2] Local variables in Java must be definitely assigned to before they are accessed, or it is a compile error.
champagne wrote:ok that's the rule, but the use of floating point is so simple in that program that it remains for me the simply not credible to have an error due to a floating point routine.
champagne wrote:lksudoku would likely have found the reason !!
lksudoku (2010.Oct.22) wrote:The bug is caused due to the uncertain ordering of a HashMap,
a HashMap in java does not guarantee that the order of the keys will remain the same for every run
Pat wrote:probably fixed in his version 1.2.3.0
lksudoku (2010.Oct.22) wrote:The bug is caused due to the uncertain ordering of a HashMap,
a HashMap in java does not guarantee that the order of the keys will remain the same for every run
by champagne » Mon Jul 25, 2011 3:05 pm
m_b_metcalf wrote:by champagne » Mon Jul 25, 2011 3:05 pm
The discussion has so bored g.r.emlin that she's gone to sleep.
2 . . . . . 1 . .
. 7 . . 6 . . . .
. . 3 . . 9 . . 8
. . . . . 5 6 . .
. 1 . . 7 . . 3 .
. . 4 9 . . . . 7
6 . . 4 . . . . .
. . . . 1 . . 9 .
. . 8 . . 2 . . 4 ED=6.9/6.7/6.7
9.....8..
.7..6....
..5..4..3
.....39..
.2..5..7.
..18....4
6..2.....
....3..5.
..4..1..9 ED=9.8/9.8/9.8
6 . . . . . 3 . .
. 4 . . 7 . . . .
. . 1 . . 8 . . 2
. . . . . 1 9 . .
. 2 . . 8 . . 5 .
. . 6 9 . . . . 8
7 . . 6 . . . . .
. . . . 5 . . 4 .
. . 3 . . 2 . . 1 ED=10.0/10.0/10.0
9.....8..
.7..6....
..5..4..3
.....89..
.2..7..5.
..31....7
6..9.....
....3..2.
..1..5..4 ED=10.1/10.1/10.0
1 . . . . . 6 . .
. 2 . . 7 . . . .
. . 4 . . 3 . . 9
. . . . . 9 1 . .
. 8 . . 4 . . 2 .
. . 5 8 . . . . 3
7 . . 6 . . . . .
. . . . 5 . . 4 .
. . 3 . . 2 . . 1 ED=10.4/10.4/10.4
9.....8..
.7..6....
..5..4..3
.....62..
.4..7..1.
..81....5
6..9.....
....2..4.
..3..8..7 ED=6.8/6.7/6.7