I am trying to solve a 5x5 crossword puzzle, where one must find 5 across clues, and 5 down clues - all in a 5x5 square grid. I have done a dictionary search for all the possibilities of the ten clues. (For brevity this is not in the attached program.) These possible solutions have been put as lists. The attached Maple 7 program attempts to solve the crossword by a series of nested for loops, checking if the intersection of across and down clue letters match. In this the use of nops is made, as the number of possible words for each clue varies. I appreciate why the program fails, but am at a loss for a "work around", and fear a complete restart may be needed.
I attach two files of the program. The Fivebyfive_crossword.mws Maple 7 file includes a graphic grid of the crossword, with asterisks (*) for unknown letters. The corresponding .txt file probably will not have that. Sadly, Maple doesn't allow the upload of .rtf files. Further documentation is in the program.
Any comments, help would be most appreciated.