Hey guys there is some code that i need to finish my program, well at least the easy way, but I dont understand it. Im writting a tic tac toe program where the computer must never be beaten. This code is supposed to find how many x's there are in a row. But I dont know how to impliment it. Can any one help. Here it is.
Code:row(i) = (i-1)/3+1