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

🚶make the solver a generator #3

Open
cognominal opened this issue Jun 9, 2023 · 1 comment
Open

🚶make the solver a generator #3

cognominal opened this issue Jun 9, 2023 · 1 comment
Assignees

Comments

@cognominal
Copy link
Owner

cognominal commented Jun 9, 2023

the goal is to enumerate partial solutions to display one and go to the next so no array is kept.

and update the PPBoard accordingly. Done.

@cognominal
Copy link
Owner Author

it works but needs parameterizing to return intermediary results according to a chosen optional number of laid tiles.
Also need to implement the logic to refuse a tentative when empty connected component is smaller than the smaller tile.
A good way to display this connected component would be nice reusing the logic of laid tiles.

The logic to calculate connected component is already there at connexParts

@cognominal cognominal changed the title make the solver a generator 🚶make the solver a generator Jun 13, 2023
@cognominal cognominal self-assigned this Jun 13, 2023
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

1 participant