-
Notifications
You must be signed in to change notification settings - Fork 3
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
Takes too long for some puzzles #1
Comments
* Split the main JavaScript file into 3 files. * Modifying the UI code to solve the puzzle asynchronously. * Adding some feedback to the user, showing that the computation is being done in the background. * Allow the user to abort the computation. This change will make it possible to add the "auto-solve" option from pull request #2, and also avoids freezing the browser (issue #1).
Possible improvements:
|
My solver maintains a set of possible colors for each edge and implements some simple inference rules that prune these sets. My blog post about LYNE briefly outlines an inference rule reasoning about paths, not just individual nodes or edges, though I didn't find it necessary to implement. (I link rather than describing the rules here so you can figure them out on your own if you'd prefer. I enjoyed writing my solver more than playing the game itself, and I don't want to spoil that for you.) |
Since this solver uses a plain brute-force algorithm, some puzzles may take too long to solve.
Is there any kind of way to cut some branches of the brute-force, so that it won't take as long to solve? I don't have a clear answer right now, but I'm documenting here some of these slow puzzles.
The text was updated successfully, but these errors were encountered: