games like tetris,goob,and others..

BlitzMax Forums/BlitzMax Programming/games like tetris,goob,and others..

I've seen a bunch of games where you line up colored shapes or shapes of the same kind and if their touching and equal 3 or more then they are removed and points giving. My question is how is that done? how or whats the best way to detect same shapes touching each other?