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

check state failed before further processing #2

Closed
yuriyweiss opened this issue Jan 6, 2019 · 1 comment
Closed

check state failed before further processing #2

yuriyweiss opened this issue Jan 6, 2019 · 1 comment

Comments

@yuriyweiss
Copy link
Owner

Connected areas of board now allow filtering failed states, not processing all their variants.

  • If minimum connected area has size 1 or 2, then state is failed;
  • If minimum connected area has size < 6, then we can check all not used shapes, maybe no variant fits this connected area. If such connected area cannot be filled with any shape variant, then state is failed.
@yuriyweiss
Copy link
Owner Author

Final implementation:

  • check that minimum connected area size is less than minimum not used shape size.
    This condition is sufficient,

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