We will create two methods for checking the neighboring tiles, as we need to do this for each axis
gameclass, add a new method called
CheckGemsX. As parameters, it will take the column and row, the gem type, and a mark flag.
Method CheckGemsX:Int(column:Int, row:Int, gem:Int, mark:Bool = False)
foundvariable of the type INT. It will be set once we find similar gems.
Local found:Int = 0
tileMap[column-1][row-1] = -1
columnis greater than
1. It means there must be gems on the left.
If column > 1 Then
column -1to the first gem on the left.
For Local c:Int = (column-1) To ...