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

Added duplication vector for burr_plate() module. #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jfjlaros
Copy link

@jfjlaros jfjlaros commented May 6, 2021

Perhaps this functionality is already implemented in some form or another, if so, please decline this pull request.

I have encountered a number of puzzles that contain multiple copies of the same piece. Instead of copying the piece specification, it would be nice to have a way to indicate which piece should be duplicated and how many times this should be done. In the example below, we duplicate piece 2 once and piece 3 four times.

burr_plate([
  ["xxx|.x.", "...|.x."],
  [".xx|xx.", "...|.x."],
  [".x.|xxx", "...|x.."],
  [".x.|xxx"],
  ["x..|xxx"],
  ["x.|xx", "..|.x"]], dup=[[1, 1], [2, 4]]);

I hope you find this useful.

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

Successfully merging this pull request may close these issues.

1 participant