Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:00, danielcano12281621
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
image
Computers and Technology, 23.06.2019 12:00, deflox74
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, janny48
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
image
Computers and Technology, 24.06.2019 00:20, talyku843
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
Do you know the correct answer?
Here are the requirements for your game: 1. The computer must select a word at random from the list...

Questions in other subjects:

Konu
Chemistry, 12.08.2021 14:00
Konu
Advanced Placement (AP), 12.08.2021 14:00
Konu
Mathematics, 12.08.2021 14:00