Sunday, April 8, 2018

Quintagram

The Times UK now proposes a new crossword puzzle
called a quintagram. Very simple in concept - there are only 5
words to find - it can get quite challenging. What we have to
work with are definitions, the number of letters in each answer, and the
pool of letters in play.

It struck me this would be a nice coding project: a template to produce
these for different purposes.

Below, the sample puzzle I am working from, in French:


                                            *     *     *
Hoping for some elegant code. So far:

Index from Text



Text from index


Changing letter color, the long way...


                                           *     *     *

New short code for color change on the letters:


Progress on creating the letter grid  programmatically:

                                   
                                        *     *     *

Success on letters!


And with a utility to generate the letters list, it's a wrap on R&D:



As always, source from: W3 Schools

No comments: