m_b_metcalf wrote:I thought it would be nice to try to solve this problem using recursion. I wrote a complete new program whose kernel is a procedure to jump from one numbered tile to the next in the correct number of jumps. The jumps are controlled by a function that handles wraparound.
And, of course, where there's a solver we have the basis of a generator. I wasn't concerned about symmetry, for the moment, and found that making minimal puzzles (for this configuration?) produces what I think are very hard puzzles. Here's my first attempt in text form:
- Code: Select all
J . J . J . J J J . J
J J J . . . . 24 . . .
J . J . J . . 54 . . .
J . . . . . 73 21 . . .
J . J . . . . . . . 46
65 J . 81 J 1 70 . J J .
J . 29 51 J 9 . 7 45 J 34
. J J 57 J . J . J . J
. . . . . . J . J 26 J
J . J . J . J 3 J . J
J 13 J 16 . . . . . 25 . minimal
I'd be grateful if someone could check it.
I'm leaving soon for a couple of weeks, so won't be looking into any variants.
Regards,
Mike