数独バックトラック法
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;
ここで、x と y =
private byte x;
private byte y;
3 で割って 3 を掛ける理由を誰か説明できますか?
(pos.getY() / 3) * 3;
(pos.getX() / 3) * 3;