twsearch icon indicating copy to clipboard operation
twsearch copied to clipboard

Defining Identical Piece in Solved State, values not contiguous

Open DougCube opened this issue 1 year ago • 14 comments

I modified a working definition file's solved state to have some identical pieces but get this error:

11: ! values are not contiguous

Why must values be contintiguous here? Isn't it just to identify which pieces are unique and which are identical to each other?

My use-case is this. I want to branch a definition file with all unique pieces to a series of definition files with different subsets of pieces being identical. If I have say 8 corner pieces, I'd like to use the number "9" to denote the pieces I no longer want to "solve" because trying to pick say the lowest unused index may still leave gaps, and it would also force me to pick possibly different numbers for each new definition file when I'm trying to generate them in bulk.

CORNERS
1 2 3 4 5 6 7 8
0 0 0 0 0 0 0 0

to

CORNERS
1 2 9 4 9 9 9 9
0 0 0 0 0 0 0 0

Would it be possible to change the behavior and support such usage?

(I should probably start a separate thread for this:) In addition, I would like a way to indicate certain pieces can ignore orientation within that "Solved" section -- not certain set of pieces but a subset of the same piece type. I realize that as a workaround I could switch to defining the set of 8*3 stickers (with no orientation) instead of 8 pieces (with 3 orientations), but that can become unwieldy.

DougCube avatar Nov 23 '24 08:11 DougCube