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

Generate gridded square piece puzzle from image #54

Closed
1 of 2 tasks
pv33 opened this issue Jan 9, 2025 · 2 comments
Closed
1 of 2 tasks

Generate gridded square piece puzzle from image #54

pv33 opened this issue Jan 9, 2025 · 2 comments
Assignees

Comments

@pv33
Copy link
Member

pv33 commented Jan 9, 2025

Conception:
Subclass of gridded that provides its own template based on width/height specifications in terms of the grid and in terms of the image. Uses the two numbers to generate a proper puzzle template, which in this case might actually be region labels over the entire image, otherwise there will be boundary line artifacts unless we keep them.

A sprint-based approach would go with line artifacts as a first pass, then provide one without lines. Not sure what Adan and Heather would think. The best is to have a visually continuous puzzle since the problem is that of quality control.

  • Based on a mask image.
  • Based on region label image.
@pv33 pv33 self-assigned this Jan 9, 2025
@pv33
Copy link
Member Author

pv33 commented Jan 11, 2025

Was thinking of sub-classing from Gridded, but it is derived from Interlocking, which the QC puzzle will not be. Will change to class name of Matrix and derive from Adjacent. Matrix puts things into rows and columns, which this follows. That means the API does not have to conform to a Gridded but can be used as a template for coding things out.

@pv33
Copy link
Member Author

pv33 commented Jan 11, 2025

Add a force sizing option so that the image and grid result in square cells.

@pv33 pv33 closed this as completed Jan 21, 2025
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