consider the following pattern:
- Code: Select all
+-------+-------+-------+
| . . . | . . . | . . . |
| . x . | . x . | . x . |
| x x . | x x . | x x . |
+-------+-------+-------+
| . . . | . . . | . . . |
| . x . | . x . | . x . |
| x x . | x x . | x x . |
+-------+-------+-------+
| . . . | . . . | . . . |
| . x . | . x . | . x . |
| x x . | x x . | x x . |
+-------+-------+-------+
The value of a box is the sum of its digits.
Find valid puzzles with the highest number of boxes having the same value.
Here is an example with 5 equal-value boxes:
- Code: Select all
+-------+-------+-------+
| . . . | . . . | . . . |
| . 5 . | . 9 . | . 4 . |
| 9 4 . | 5 2 . | 8 6 . |
+-------+-------+-------+
| . . . | . . . | . . . |
| . 9 . | . 5 . | . 2 . |
| 5 2 . | 4 6 . | 9 7 . |
+-------+-------+-------+
| . . . | . . . | . . . |
| . 7 . | . 8 . | . 9 . |
| 3 8 . | 9 7 . | 4 5 . |
+-------+-------+-------+
5 boxes have the same value equal to 18 : B1,B3,B6,B7,B9
JPF