|
Re: Logic Problem involving loops and arrays
basically what it does is it loops through each row and column, then loops through each "other" row and column (signified by a and b instead of x and y). For each one, it tests whether the first square (x,y) contains similar values as in the other square (a,b). If it does, then it returns 0, if not, then it returns 1.
I am trying to figure out how to only test squares that are in its current row, in its current column, and in its current 3x3 grid. That is what the if statement is testing for.
|