Simple Combo/Permute calculation

45 replies · 6K views · last reply
DaveC426913 said:
You are technically correct, but your choice of rendering is going to lead to misunderstandings, tears and heartbreak. Remember, we're not the only ones reading this thread. :wink:
We've already changed it multiple times! The objective is to get to the base level abstraction of how to count configurations for this game.

EDIT:
Even now I'm still not sure we are in agreement based on the edits made in #26! It seems like this:

Diagram of four unit squares arranged in a plus-like shape: a blue square at left, a blue square at centre-bottom, a green square at top-right, and a blue square below the green one, with the centre square overlapping the left and top squares.

is just:

Diagram of a green square beside an L-shaped figure made of three blue squares, two in the top row and one below the right square.


( Are there 3 white filled quadrants in this figure not shown?)

Disagrees with my assertion that:

Left: a 3x3 grid of squares with a red prohibition circle and diagonal slash over it, with blue and green shaded cells. Right: a 2x2 grid with blue, green, and white quadrants, shown after a black arrow pointing right.
 
Last edited:
erobz said:
We've already changed it multiple times!
I know; I was originally using a shorthand, thinking I only represented what was needed, but it turns out that was wrong and that ambiguity has caused confusion.

Abstraction is one thing, but misrepresentation is not good for communication.

This is the minimal graphic required to represent valid permutations. It needs grey, it needs white and it needs null.
erobz said:
Even now I'm still not sure we are in agreement based on the edits made in #26!
Here is your product:
Three grey circles each holding square cells: left shows three green squares forming an L shape, middle shows one blue square, right shows three green squares with a blue square in the lower-left gap.


It is legal, and difficult to build.
But how it is built does not factor into the permutations.I'm also seeing a text version that looks like this:
RgRg|--Rg
----|Rb--

Which means:

Layer 1: squaRe-green, squaRe-green | empty, squaRe-green
Layer 2: empty, empty | squaRe-blue, empty
Personally, while that's good codification, I find it less than visually intuitive.
 
Last edited:
DaveC426913 said:
I know; I was originally using a shorthand, thinking I only represented what was needed, but it turns out that was wrong and that ambiguity has caused confusion.

Abstraction is one thing, but misrepresentation is not good for communication.

This is the minimal graphic required to represent valid permutations. It needs grey, it needs white and it needs null.

Here is your product:
View attachment 326394

It is legal, and difficult to build.
But how it is built does not factor into the permutations.
Ok, so you are saying the little blue square placed on an empty layer (grey placeholder) will not resize, and move to the base layer like shown in #23?
 
erobz said:
Ok, so you are saying the little blue square placed on an empty layer (grey placeholder) will not resize, and move to the base layer like shown in #23?
Right. Mostly.
It can be done, but it's a process that involves cutting and re-combining and disposing of objects in a complex way. I could go into it if you want; it's all laid out in the game guide, but that's behind a passwall, so I'd have to copy and paste the section of the article.

And I just realized that vastly complicates the calculations of the total permutations. Not I'm no longer sure that there are simply static rules, so much as there are procedures (algorithms).
 
DaveC426913 said:
Right. Mostly.
It can be done, but it's a process that involves cutting and re-combining and disposing of objects in a complex way. I could go into it if you want; it's all laid out in the game guide, but that's behind a passwall, so I'd have to copy and paste the section of the article.
Not necessary. I thought you were saying it was not a valid config in 23. Forget I ever said anything.
 
I think I'd be satisfied with just knowing the possible symmetrical shapes, which I think is simply
(4x8)+(4x8)2+(4x8)3+(4x8)4, as you eluded to way back at the start.
 
DaveC426913 said:
And I just realized that vastly complicates the calculations of the total permutations. Not I'm no longer sure that there are simply static rules, so much as there are procedures (algorithms).
We are operating under the assumption that you can in theory get to every configuration, we aren't talking about the likelihood of reaching a particular configuration.
 
erobz said:
We are operating under the assumption that you can in theory get to every configuration, we aren't talking about the likelihood of reaching a particular configuration.
We don't even know what "every" configuration is. That trick, where a layer 2 shape is melted into layer 1, throws the combinations count into chaos because it means the "rules" for validity are ambiguous.

eg.: how many combinations are added if you melt a layer 4 all the way down to level 1? What about melting a level 4 down to level 3 and a level 2 down to level 1? The possibilities are virtually limitless.

Regardless of how it might be done or even if it can be done, simply counting them becomes an intractable problem.
 
DaveC426913 said:
We don't even know what "every" configuration is. That trick, where a layer 2 shape is melted into layer 1, throws the combinations count into chaos because it means the "rules" for validity are ambiguous.

eg.: how many combinations are added if you melt a layer 4 all the way down to level 1? What about melting a level 4 down to level 3 and a level 2 down to level 1? The possibilities are virtually limitless.

Counting "every" configuration suddenly becomes an intractable problem.
Well, if some higher level converts like that, the new configuration was already counted. Probably safe to say what @pbuk computed ##2.0 \times 10^{24}~\rm{shapes} ## is an upper bound and leave it at that.
 
I feel like I've led you guys on a wild goose chase, only to find we're back where we started. :woot:
 
DaveC426913 said:
I feel like I've led you guys on a wild goose chase, only to find we're back where we started. :woot:
Overall forward progress was made!
 
Yes, ultimately the answer to the question: Would it be tactically useful to create factories that produce each type of major shape in anticipation of future levels needing them? is: probably not.
 
DaveC426913 said:
Yes, ultimately the answer to the question: Would it be tactically useful to create factories that produce each type of major shape in anticipation of future levels needing them? is: probably not.
:oldsurprised: I didn't even realize there was a point to this beyond trying to figure out how may shapes there are!
 
DaveC426913 said:
We don't even know what "every" configuration is. That trick, where a layer 2 shape is melted into layer 1, throws the combinations count into chaos because it means the "rules" for validity are ambiguous.

eg.: how many combinations are added if you melt a layer 4 all the way down to level 1? What about melting a level 4 down to level 3 and a level 2 down to level 1? The possibilities are virtually limitless.

Regardless of how it might be done or even if it can be done, simply counting them becomes an intractable problem.
I don't know what you mean by "melting down". There is no trick, now I've played the game the rules are simple: every layer must have at least one quadrant occupied.

That's it.

I think you are missing the simple trick that enables you to make the "hanging" quadrant in the 'logo' shape: it is made in two halves.

There is an open access wiki on Fandom, I haven't looked at it much (it spoils the fun) but it's easy enough to figure out the game mechanics if you have played things like SpaceChem, Factorio etc.
 
pbuk said:
I don't know what you mean by "melting down". There is no trick, now I've played the game the rules are simple: every layer must have at least one quadrant occupied.

That's it.

To make this shape:
Diagram of a shape made of three green squares of equal size arranged in an L-like cluster with one smaller blue square tucked beneath the top-left green square, set on a grey circular background.


I assume you concur with this:
Two equations of tiled shapes: top row, an L-shaped green piece plus a blue square is not equal to a green 2x2 block with a blue square tucked under the left green tile; bottom row, the same L-shaped green piece plus a blue square equals a 2x2 block with green on top and blue bottom-left, green bottom-right.
When layer 2 is stacked on top of layer 1, they "melt" together to become one layer. But, importantly, the blue square will not shrink. i.e. you cannot build the requested shape this way.

There is a trick to it, but it requires multiple steps. I wouldn't call it "simple" if I had to discover it on my own. To you, being more experienced with similar games, I guess it is not new.
 
Last edited:
DaveC426913 said:
I assume you concur with this:
View attachment 326413

Yes of course, but Icon of two adjoining squares in a grey outline, a larger green square above and a smaller blue square below and offset to the right, on a pale grey circle. plus Icon of a vertical rectangle split into two equal green squares stacked on top of each other, outlined in dark grey, on a light grey circle. equals Icon of four squares arranged in an L-like cluster: three green squares and one blue square, outlined in dark grey on a light grey circle..

You can easily make the first shape by cutting a Icon of four squares arranged in an L-shaped group: two green squares on top, two blue squares below, with a green square offset at the bottom right, all outlined in dark grey on a light grey circle. in half.

DaveC426913 said:
To you, being more experienced with similar games, I guess it is not new.
Perhaps, although I find that this type of game exercises the same parts of my brain as I use when writing code - particularly in a low level languge with RISC machine code at the far end of that spectrum! For a game with a more explicit link to coding, try https://en.wikipedia.org/wiki/TIS-100.