Hey guys i've been racking my head through this for the past few hours, not really getting it. Hoping someone can help me out and point out where my mistake is.
Basically i'm trying to make a match 3 game. I've gotten to the point where I need to check the board if there are 3 or more tiles of the same value in a row. I've got a different array for each row and column of the board so now it's just up to looking through the arrays for 3 or more in a row.
Here's the code. It sometimes returns 3 in a row, almost always adds 2 in a row, and i've rare seen it add 4 in a row, although its rare to get four in a row when randomly generating my board in the first place.
List<Tile> List