要求
猜单词的作业
The game of hangman is a popular children’s word guessing game aimed at improving spelling and general knowledge. A secret word is chosen (usually related to a chosen topic e.g. a country or a fruit or vegetable) and the player tries to work out what the word is by guessing letters. Each time a player correctly guesses a letter in he word, then the letters should be filled in at their ppropriate location in the word (see below). Note that he letters can be guessed in any order. If the player uesses a letter incorrectly, then the hangman’s gallows (See igure 1a) are constructed one line at a time for each wrong letter till the player dies after 8 wrong guesses. A possible text-based version of the hangman’s gallows is shown in Figure 1b. Example game:
Secret word entered by player 1 is: Guangzhou
Displayed on the screen is: ???
Player 2 guesses: G
Displayed on the screen is: G???g???..and so on
成果展示
三个版本程序下载地址
https://download.youkuaiyun.com/download/renzemingcsdn/55010233