View Single Post
Old 03-09-2008, 05:07 PM   #56
Clemenseken
eWriter
Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.Clemenseken can program the VCR without an owner's manual.
 
Clemenseken's Avatar
 
Posts: 267
Karma: 175607
Join Date: May 2007
Location: Frankfurt, FRG
Device: PB-IQ / Sony PRS-500
Talking Found bug - but not in YOUR program ...

@ obelix:

I looked into your code and found out that "var s = stream.readline()" in "checkSudokuFiles" returns 40,000.
Without more reading I devided 40,000 by 81 (3 x 3 x 3 sudoku fields) and got:
506.17283951 (edit: "." instead of European ",")
...which didn't seem to make much sense.

When I looked around a bit in your files I got the idea to look how many puzzles are in the *.tpl files. "Simple.tpl" actually has 500 - so I looked closer at the code and saw that "var i" actually is expexted to be "s.length==81" plus ONE.

So I had an obvious connection as 41,000 devided by 81+1 is 500 (puzzles).
Today I was out of house with my family and had the opportunity NOT to think about code lines - and when we came back I realized that my *.tpl files were considered by SONY-PRS to contain ONE huge line each.
I changed line breaks to "UNIX" style and Sudoku does


*** W * O * R * K * !!! ***

I'm almost happy! I will look more closely into your code and do a few changes to make it more comfortable (to my humble taste...).

Again: Thanks a lot for your great work!!!
Clemenseken is offline   Reply With Quote