what if we want to expand the dictionary to support multi-word phrases?
like common cliches or movie titles, or any other myriad common expressions.
this is the version of hangman that i spent hours playing myself...
almost make it a 'wheel of fortune' verion of hangman, but with no wheel ;)
it only adds 4 lines to the code, and some complexity to a few of the regex
conditionals.
Marco Baringer wrote:
NOTES
- -----
1) The dictionary file will contain one word per line and use only
7-bit ASCII characters. It may contain randomly generated
words. The dictionary will contain only words longer than 1
character. The size of the dictionary may be very large. See
http://perl.plover.com/qotw/words/
for sample word lists.
2) The dictionary file used for the test (or the program for
generating it) will be made available along with the write-up.
3) If a letter appears more than once in the mystery word, all
occurrences of that letter must be filled in. So, if the word is
'bokonon' and the player guesses 'o' the output must be '_o_o_o_'.
|