This does not happen in desktop but in ppc. I got overflow problem when the recursive call is big. Not sure how to resolve it.
Here is a portion of the code:
Here is a portion of the code:
B4X:
Sub clearme(h, v, col, dr)
If h < 0 OR h > board.h - 1 Then Return
If v < 0 OR v > board.v - 1 Then Return
If blk(h, v).col = 0 Then Return
If blk(h, v).col = col Then
blk(h, v).col = 0
blk(h, v).upd = 1
gRate = gRate + 1
clearme(h - 1, v, col, 0)
clearme(h, v - 1, col, 0)
clearme(h + 1, v, col, 0)
clearme(h, v + 1, col, 0)
end if
end sub