Q: Demos or examples of array usage for puzzle games

Greetings,
I have searched the forums, and read the relative posts to the subject - however I am still seeking more general clarification.
Apologies in advance for the vague question - but if one were to make a puzzle game in which there is a constant new generation of pieces (tetris, puyo pop, columns, klax, etc).......... is the best practice method to use an array to track the pieces / actors?
I understand 2 actors colliding. However, in order to say "make 3 matching pieces disappear" - would one have to write a function to check all array combinations row by row or column by column to check for matching pieces?
Thank you in advance.
I have searched the forums, and read the relative posts to the subject - however I am still seeking more general clarification.
Apologies in advance for the vague question - but if one were to make a puzzle game in which there is a constant new generation of pieces (tetris, puyo pop, columns, klax, etc).......... is the best practice method to use an array to track the pieces / actors?
I understand 2 actors colliding. However, in order to say "make 3 matching pieces disappear" - would one have to write a function to check all array combinations row by row or column by column to check for matching pieces?
Thank you in advance.