Sudoku backtrack method
int xx = (pos.getX() / 3) * 3;
int yy = (pos.getY() / 3) * 3;
for (int y = 0; y < 3; y++) {
for (int x = 0; x < 3; x++) {
if ((xx + x != pos.getX()) && (yy + y != pos.getY())) {
possible[work[xx + x][yy + y]] = false;
where x and y =
private byte x;
private byte y;
Could someone explain why do we divide by three and multiply by three?
(pos.getY() / 3) * 3;
(pos.getX() / 3) * 3;