- Once PlayHangman.py is complete, make a copy of it named
PlayHangmanMovies.py
for the movie version of Hangman with
guessing movie titles.
- You will have to change getPossibleWords to return a list of
titles with "length" words.
- Some of the movie titles may have nonalphabetic letters in
them. You should show those characters. The user should not guess
them. For example, the title "Saw 3D: The Final Chapter" would be
started as (note the '3' and ":" and the blanks):
['_','_','_',' ','3','_',':',' ','_','_','_',' ','_','_','_','_','_',
' ','_','_','_','_','_','_','_']
You'll need to modify the guessStart method to start this way. Suggest
you generate all the characters in the list as '_', and then fill in the
blanks and any nonalphabetic characters. You can use ch.isalpha() to
determine if a character is an alphabetic character.
- Write a function to determine how many of the words are not complete
yet (still have "_" in them). It might be easier to do this by converting
the guess so far into a string and then a list of words.
- See the requirements for this part on the main page.