I need to make a Hangman game that only does one 5 letter word. This word, however, needs to be able to be changed by the user easily at the top of the code. So far I have the word divided into characters like this
final char LETTER1='h', LETTER2='o', LETTER3='u', LETTER4='s', LETTER5='e';
And I have a switch for each of the letters. This way makes it difficult to change the word because you have to change the letters in the declarations as well as in the switch. Any suggestions about what I could do?
2007-08-08
06:53:52
·
4 answers
·
asked by
Matt C
1
in
Computers & Internet
➔ Programming & Design