|
|
|
|
else if (x < 3 && 2 < y && y < 6)
. This would be the more proper way to write this, but I can not say it is the correct way to get what you want. It might be.
|
|
0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 0 0 0 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 3 3 3 4 4 4 5 5 5 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 6 6 6 7 7 7 8 8 8 6 6 6 7 7 7 8 8 8 |
|
|
the fifth box |
|
|
(0, 0) --> i:[0, 3] j:[0, 3] (1, 0) --> i:[0, 3] j:[0, 3] (2, 0) --> i:[0, 3] j:[0, 3] (3, 0) --> i:[3, 6] j:[0, 3] (4, 0) --> i:[3, 6] j:[0, 3] (5, 0) --> i:[3, 6] j:[0, 3] (6, 0) --> i:[6, 9] j:[0, 3] (7, 0) --> i:[6, 9] j:[0, 3] ... (4, 8) --> i:[3, 6] j:[6, 9] (5, 8) --> i:[3, 6] j:[6, 9] (6, 8) --> i:[6, 9] j:[6, 9] (7, 8) --> i:[6, 9] j:[6, 9] (8, 8) --> i:[6, 9] j:[6, 9] |
|
|
|
|
|
|
|
|
enternumber
function only puts 1 number on the board, then all the sums are calculated for that 1 number? Even for a partially filled board (say 20 numbers) summing doesn't make sense IMO.