Have students write a game of Hangman in Python in which the computer cheats by changing its secret word to give students practice using dictionaries.

  • Each time the user guesses a letter, the computer checks a dictionary to see if there is another word consistent with previous guesses that does not contain the new letter.
    • If so, the computer will change its secret word to this new word, cheating.
  • See the Duke version of this assignment for inspiration on implementing this assignment in your classroom.