This code tries to fill all the blank spaces in the crossword puzzle with the provided hints.
The crossword is a (square) matrix with +
indicating blocked cells and -
indicating available blank spaces.
And, hints are ;
delimited string.
Eg.
-
Crossword
+-++++++++
+-++++++++
+-++++++++
+-----++++
+-+++-++++
+-+++-++++
+++++-++++
++------++
+++++-++++
+++++-++++ -
Hints
"LONDON;DELHI;ICELAND;ANKARA"
+L++++++++
+O++++++++
+N++++++++
+DELHI++++
+O+++C++++
+N+++E++++
+++++L++++
++ANKARA++
+++++N++++
+++++D++++