猜单词游戏

要求

猜单词的作业
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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

清欢_小铭

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值