I am trying to hack match 3. I really need to follow the logic of how you make matches.
It does not appear, immediately, that how you did your matching. I need to find the point where you do your matches at the lowest level.
I need to be able to match objects based on their category. The pseudo-code is simple enough, I thought about all these complicated ways, but I noticed the easiest way would be to just add a field to the items which represent their category and instead of checking if the indexes matched. check the group id(no) and see if that matched.
I assumed when you did your match you simple checked index of the two objects.
If It was java, you would simply override the equals function and add a field groupid. Working from someone else's code it is not immediately obvious to me how you have done the equivalent and whether you have placed the match as one method. Assuming you have one boolean method to see if items are the same can you show me where it is.
Follow the logic of others is difficult.