Hello! I'm working on a Diamond Dash type matching algorithm. Right now it works 95% of the time, all of the time (lol).
The idea behind it is simple. Once a game piece is placed, check the game pieces around it, starting at 0 degrees working its way counter clockwise. Once a match is found, check pieces around that game piece. If no matches are found, retrace steps and check pieces that have not been checked.
Please take a look at it, feel free to use the algorithm and comment any bugs that are rendering it unuseful 5% of the time!
Thnx!
https://www.dropbox.com/s/9q0eadso2xvv3 ... .capx?dl=1
PS: Cannot attach capx to post for some reason...