subject

Here are the requirements for your game: 1. The computer must select a word at random from the list of avail- able words that was provided in words. txt. The functions for loading the word list and selecting a random word have already been provided for you in ps3 hangman. py. 2. The game must be interactive; the flow of the game should go as follows: • At the start of the game, let the user know how many letters the computer's word contains. • Ask the user to supply one guess (i. e. letter) per round. • The user should receive feedback immediately after each guess about whether their guess appears in the computer's word. After each round, you should also display to the user the par- tially guessed word so far, as well as letters that the user has not yet guessed. 3. Some additional rules of the game: • A user is allowed 8 guesses. Make sure to remind the user of how many guesses s/he has left after each round. Assume that players will only ever submit one character at a time (A-Z). • A user loses a guess only when s/he guesses incorrectly. • If the user guesses the same letter twice, do not take away a guess - instead, print a message letting them know they've al- ready guessed that letter and ask them to try again. • The game should end when the user constructs the full word or runs out of guesses. If the player runs out of guesses (s/he "loses"), reveal the word to the user when the game ends.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Does anybody know how to hack into a google account? i had important information on it and it is gone now and i need getting it back.
Answers: 1
You know the right answer?
Here are the requirements for your game: 1. The computer must select a word at random from the list...
Questions
question
Mathematics, 16.03.2022 02:40
Questions on the website: 13722367