Hey everybody,
Lately I have written the game Hangman in many different languages (C, JavaScript, Java and PHP so far). Here is the code snippet for C! It uses a words file, on the bottom of this post you will see a small example of a few words.
You can adjust the default words file in the getWord() function (line 164). If the file does not exist, the script will ask for another words file. The words need to be separated by a |. Words files can be found can be found here.
~G
words.txt
abbey|abruptly|affix|askew|axiom|azure|bagpipes|bandwagon|banjo|bayou|bikini|blitz|bookworm|boxcar|boxful|buckaroo|buffalo|buffoon|cobweb|croquet|daiquiri|disavow|duplex|dwarves|equip|exodus