[SOLVED] 代写 game Midterm Project

30 $

File Name: 代写_game_Midterm_Project.zip
File Size: 254.34 KB

SKU: 2563881989 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Midterm Project
•You will create a classic American game called “Hangman”.This is a guessing game in which the user needs to guess a word by filling in a character one by one.The word to guess is represented by a row of dashes.If the player guesses a letter which exists in the word, the script writes it in all its correct positions.The player has 10 turns to guess the word.You can easily customize the game by changing the variables.You will be using a counter and loops.You will be using the content you learned from Chapters 1 – 4.
1.你将创造一个经典的美国游戏叫做“刽子手”。这是一个猜谜游戏,用户需要一个字一个字地填一个字。要猜的单词用一行破折号表示。如果玩家猜测单词中存在的字母,则脚本将其写入所有正确的位置。玩家有10个回合来猜单词。您可以通过更改变量轻松自定义游戏。您将使用计数器和循环。你将使用你从第1-4章学到的内容。
Sample Execution:
Secret Word:– – – – – – –
Enter Letter:a
Output:There is no letter ‘a’ in the secret word.You have 9 tries left
Enter Letter:d
Secret Word:– – d – – – –
示例执行:
密语-
输入字母:a
输出:密文中没有字母“a”。你还有9次机会
输入字母:d
密语:–d—
And so on.If the user guessed the correct word before the maximum number of guesses, then you would display the WORD and a message “Congratulations:You guessed the correct WORD”.For example:Secret Word:Midterm.Congratulations:You guessed the correct WORD.If the user did not guessed the correct word before the maximum number of guesses, then you would display a message.For example:You have reached your maximum guesses.The secret word was Midterm.You failed to guess the secret word.Remember, the user can only guess up to 10 times.
等等。如果用户在最大猜测次数之前猜中了正确的单词,那么你就会显示这个单词和一条信息“祝贺你:你猜对了”。例如:密语:期中。恭喜:你猜对了。如果用户在猜测次数最多之前没有猜到正确的单词,那么您将显示一条消息。例如:您已达到最大猜测值。秘密消息是期中考试。你猜不出那个秘密字。记住,用户最多只能猜10次。
Note:The letter is replaced in all its position.For example:if the secret word is Welcome and the user guessed the letter ‘e’.The letter ‘e’ appears 2 times in the word, so then the dashes are replaced in all occurrences of the letter.For example:– e – – – – e
Save your work as “hangman_midterm.py”
Put your program in a ZIP file and submit the zip file in blackboard.Name your zip file as “midtermproject.zip”
注:字母已全部替换。例如:如果欢迎这个秘密单词,而用户猜中了字母“e”。字母“e”在单词中出现2次,因此在所有出现的字母中,破折号都会被替换。例如:-e–e
把你的作品保存为“hangman_middle term.py”
把你的程序放在一个ZIP文件中,然后在黑板上提交这个ZIP文件。将zip文件命名为“midtermproject.zip”

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 game Midterm Project
30 $