Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
subhomoy92 opened this issue Jul 25, 2020 · 1 comment

Comments

@subhomoy92
Copy link

subhomoy92 commented Jul 25, 2020

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

@pocketjoso
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants