jonadsimon / wonder-words-generator

Generates WonderWords puzzles
Apache License 2.0
2 stars 0 forks source link

Re-index the board array such that numbering starts at edges of the board and moves inwards #2

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Can't add custom search functionality (see here), therefore can't give more detailed information on how the array should be traversed other than "min_first". Therefore need to hack the priority of "edges before middle" into a "first --> last" framework.

This can be done by creating a mapping: {1 --> 1, n --> 2, 2 --> 3, 3 --> n-1, ...}

As with the int-to-letters map, this can be encoded in MiniZinc via a dense array.

jonadsimon commented 2 years ago

This is prohibitively difficult to do. Also when a similar idea was attempted manually (alternate between smallest, indomain_min and largest, indomain_max) it made things worse. Therefore scrap it.