danmermel / cryptario

Cryptic crossword solver
0 stars 0 forks source link

Hidden words #25

Closed glynnbird closed 5 years ago

glynnbird commented 5 years ago

Stop getting letters from friends (3) Some teachers get hurt (4) Metal concealed by environmentalist (4) Hide in Arthur's kingdom (4) Who means to reveal where the heart is? (4) Pole coming from Pakistan or Thailand (5)

danmermel commented 5 years ago

Need:

An index on solution A list of hiddenWordIndicators

danmermel commented 5 years ago

Stop getting letters from friends (3)

Find the indicator ("getting letters from")

Get words from left and right of indicator "Stop" "friends"

Get a list of words of the required length from left and right sto, top.... etc fri, rie, end,... etc

Check in the dictionary which are actual words top end

Are any of the actual words synonyms of the "definition" on the opposite site top = friends? end = stop? BOOM!

Return "end"!

danmermel commented 5 years ago

Some teachers get hurt (4)

This one the indicator is at the beginning.... so let's have some detection around the location of the indicator because then you just assume that the definition MUST be at the end

danmermel commented 5 years ago

TO do:

  1. Write the tests for analyzeHidden
  2. Return real words that fail the isSynonym test, because they may be hidden words (see Pole clue above)