Okay, I think I get that. My array uses digits from 1-8 (0 has a special use), I intend also to mark the valid cells by changing them to '9'.
However, one thing I must be careful of is that it is possible to have a sequence of valid cells that could be up to all 10 cells in a row/column. Also, I need to avoid instances where there is more than one sequence of 3 or more of the same value, but only one sequence is actually valid...
i.e. (Imagine the X being the check cell, and the value is '5'
2187547821
2558562187
2155687216
26X8721578
2572168572
6552365842
3251562381
3256568228
3257476242
6312757812
Note that in column '2', the top sequence of '5's is valid because the two above the X plus the X makes 3, but the '7' below the X is a gap making the bottom sequence of '5's invalid.
------------sorry it's quite simple in theory, but really hard to explain I think!
However, one thing I must be careful of is that it is possible to have a sequence of valid cells that could be up to all 10 cells in a row/column. Also, I need to avoid instances where there is more than one sequence of 3 or more of the same value, but only one sequence is actually valid...
i.e. (Imagine the X being the check cell, and the value is '5'
2187547821
2558562187
2155687216
26X8721578
2572168572
6552365842
3251562381
3256568228
3257476242
6312757812
Note that in column '2', the top sequence of '5's is valid because the two above the X plus the X makes 3, but the '7' below the X is a gap making the bottom sequence of '5's invalid.
------------sorry it's quite simple in theory, but really hard to explain I think!