I have on 2D array from 9x9 as the field, but now I need to check the smaller fields of the sudoku,
(like the 3x3 fields within the thick black lines in this picture)
The problem is running thru a small box is simple like this:
for(int i=0; i<3; i++){
for(int j=0; j<3; j++){
array[i][j];
}
}
But how can I make it that after doing 1 box of 3x3 it jumps to the next box (positions 03 --> 05, 13 --> 15, 23 --> 25) and then the next box. And then the next line of 3 boxes from 3x3 (the middle in the picture from a little earlier). I hope you get what I am trying to say.
Many kudo's to the person that can help me creating this loop.
With kind regards
InsaneWolf

New Topic/Question
Reply



MultiQuote





|