Finds every guaranteed winning play for the word game Ghost.
Ghost is a word game in which players take turns adding letters to a growing word fragment, trying not to be the one to complete a valid word. Each fragment must be the beginning of an actual word, there is a minimum of four letters of a word that counts. The player who completes a word loses the round.
This program reads a dictionary and figures out words that will guarantee a win both for the player who plays first and the player who plays second. Example code is provided in Python and Clojure for comparison