In this chapter we’ll build a Hangman game! We’ll learn how to use dialogs to make the game interactive and take input from someone playing the game.
Hangman is a word-guessing game. One player picks a secret word, and the other player tries to guess it.
For example, if the word were TEACHER, the first player would write:
The guessing player tries to guess the letters in the word. Each time they guess a letter correctly, the first player fills in the blanks for each occurrence of that letter. For example, if the guessing player guessed the letter E, the first player would fill in the Es in the word TEACHER like so: ...