gui: Word Suggestions
Why?
As described in #67 (closed), feedback loop is slow. One cannot see immediately if there is no solution to the grid because of some too constraining words, unless by running the solver (which may never return if grid is not filled enough). Showing the available candidates for the selected slot would improve this.
What?
Before, in dictionary pane:
- Dictionaries
- Words
After:
- Dictionaries
- Words
- Suggestions
The suggestions are simply the words applicable to the currently selected slot.
Example of other editors:
- GNOME Crosswords Editor
Suggestions for both horizontal and vertical slots are presented. Might be useful. Not planning to do the same for now though.
(Note: GNOME Crosswords support dictionary scores, which Croiseur does not.)
- qxw
Suggestions are named "Feasible Words".
How?
- Create a new section in the dictionary pane.
- Bind this section to the selected slot to be introduced in #67 (closed). Either:
- Call croiseur search function introduced by !26 (merged) when slot content or selected slot change - might turn to convoluted and not very efficient code
- Do the search directly in the gui using the handy JavaFx
FilteredList
.
Edited by Antoine Belvire