[SOLVED] game Midterm Project

$25

File Name: game_Midterm_Project.zip
File Size: 188.4 KB

5/5 - (1 vote)

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.101-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
a9
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
ee2-ee
hangman_middle term.py
ZIPZIPzipmidtermproject.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
$25