sudokuJS
sudokuJS copied to clipboard
analyzeBoard is always returning "finished:True" inspite of errors and incomplete board
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
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.