so I have a grid of squares. The red squares are player's pieces and the grey squares add a multiple to the player's red pieces.
so if a red piece is adjacent to a grey piece the red piece gets 2X multi. but if there are grey pieces contiguous with with that grey piece, you would do 2X*2X, then another 2X*2X*2X.
Currently in the game I am doing adjacency with another overlapping sprite then a For Each, but I'm having trouble with the contiguous part. Seems like I would just get into a recursive nightmare.
Probably need to do two passes where I would set the grey piece's multiplier first. but still having trouble wrapping my head around this one.
Any thoughts?