I have never really used while loops to build an array I think that might be where your problem is. Try using a for loop
thats the syntaxCode:for(int i =0; i<8; i++){ for(int j =0; j<8; j++){ array[i][j] = 0; } }
I have never really used while loops to build an array I think that might be where your problem is. Try using a for loop
thats the syntaxCode:for(int i =0; i<8; i++){ for(int j =0; j<8; j++){ array[i][j] = 0; } }
the array goes from board[0][0] to board [7][7]
you went up to 8
Thank you CornedBee, that was the problem
edit: and howee.
I think I am done now, so thanks again for all the help with my dumb questions.
There are no dumb questions from those who try