sudokuJS icon indicating copy to clipboard operation
sudokuJS copied to clipboard

analyzeBoard is always returning "finished:True" inspite of errors and incomplete board

Open subhomoy92 opened this issue 4 years ago • 1 comments

I'm trying to use your code for one of my project and after intializing the board, and clicking on analyze function, it is returning "finished:true" every time. If the board is incomplete or have errors, then also it is returning the same message.

`var mySudokuJS = $("#sudoku").sudokuJS({ difficulty: "easy" });

function analyze() { var data = mySudokuJS.analyzeBoard(); console.log(data); } `

can u please help

subhomoy92 avatar Jul 25 '20 11:07 subhomoy92

Hi,

In this case, is there an error field on the returned data, from the analyzeBoard function call?

In addition, I wonder if you're listening to the boardErrorFn? If you're talking about the board being correct initially, but the user entering incorrect values in cells, I think you can use this callback function to handle that.

Please note that I haven't touched this code in many years so I'm afraid I don't know it very well anymore, and I won't be able to go in and make code changes.

pocketjoso avatar Jul 25 '20 14:07 pocketjoso