Page 50 - Programming the Raspberry Pi Getting Started with Python
P. 50
The game as it stands has a few limitations. First, it is case sensitive, so you have to enter your
guesses in lowercase, the same as the words in the words array. Second, if you accidentally type aa
instead of a as a guess, it will treat this as a whole-word guess, even though it is too short to be the
whole word. The game should probably spot this and only consider guesses the same length as the
secret word to be whole-word guesses.
As an exercise, you might like to try and correct these problems. Hint: For the case-sensitivity