View Single Post
  #3 (permalink)  
Old Oct 27th, 2007, 18:39
tox0tes tox0tes is offline
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 223
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to tox0tes
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.
Reply With Quote