I need to write an executioner program. Only the "house" is evil and changes the word, so the player (hopefully) loses.
I will create a set of all words at the beginning of the game, when the player selects a letter, I will create a set that matches the template, and continue to create the optimal subset.
eg
Assuming the user selects 3 alphabetic words, and for these examples, we say that in English there are only the following 3-letter words; Dog Fog And Fox Cat Not Bus
If the user Guesses is "o", the program will compile a list of words with "o" in them, I will sort this list into sets so that one set is "and" another "bus" and the other is cat "
However, I was wondering what the best way would be to store these sets.
user972183
source share