Answer the question
In order to leave comments, you need to log in
How to correctly check the possible combinations of the game 3 in a row?
I did a check for possible combinations, but it's too cumbersome, namely, I check like this - first I check if there are possible cells with prefabs on the right +1 +2 + 3, if there are, then I check the values of the cells 0 +2 +3, that is, that if the cell is moved to the right, if all these cells have the same values (that is, the same colors, for example), then plus the combination, then I check the same if the same to the right, but the cells are to the right and above, to the right and below, well, to the left, then the same manipulations if there is a shift up, down, left, this is all checked for each cell after the appearance of new colors (that is, after which colors have matched and been destroyed) ...
I understand that this scheme is extremely cumbersome, inconvenient, and generally looks quite crazy, though and working...
Can you tell me how to check this kind of combinations?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question