Need to add support for phrases
Closed this issue · 0 comments
spicydll commented
Words get boring. Let's spice it up with phrases and sentences!
We need to do the following:
- refactor the "checkStringLettersOnly()" method to "checkPhrase()"
- Make sure that the input string has at least one letter
- Possibly move the method to the "Hangman" class
- refactor the "updateState()" method
- Add support for characters other than letters
- Add a space between each character
- If the character is a letter, replace with an underscore
- Add support for characters other than letters
- General refactorings of "word" to "phrase"
I have already checked the HangmanDictionaryFileProcessor class and it seems it does not need any major refactorings, contrary to popular belief (A.K.A, Just me )
However, just about every class in the solution needs to change every occurrence of "Word" to "Phrase." Nothing a quick find and replace can't fix!