The goal of the lab is to create a guessing game. Here, a word is thought...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The goal of the lab is to create a guessing game. Here, a word is thought of, and the walls of a room are draw. Then underscores are drawn as many as there are letters in the word. Then the guesser starts guessing letters. If the guessed letter is in the word, the letter replaces the underscore in the location(s) that the letter is in the word. If the guessed letter is not in the word, a mouse and a person are added in the following order: mouse ('o'). head ('0' - capital O), right arm (/), torso (1), left arm (1), right leg (/), and left leg (\). The guesser wins if all of the letters of the word are guessed and loses if the entire mouse and person are drawn (i.e. 7 incorrect guesses). For this program, you are provided with a python file called 'words.py'. Put this file in the same folder/directory as your Lab_4_XX.py file. The first line of code in your program should be 'from words import*. This will import a list called words, which has common 4 to 11 letter words. Here is what the start of the game looks like: Here is what the game looks like after an initial first guess: __O____ Letters guessed: o Here is what the end of the game looks like if the player guesses 7 incorrect letters: 0 ハハ Screen shots of a complete game can be found at the end of the specifications. 2 The goal of the lab is to create a guessing game. Here, a word is thought of, and the walls of a room are draw. Then underscores are drawn as many as there are letters in the word. Then the guesser starts guessing letters. If the guessed letter is in the word, the letter replaces the underscore in the location(s) that the letter is in the word. If the guessed letter is not in the word, a mouse and a person are added in the following order: mouse ('o'). head ('0' - capital O), right arm (/), torso (1), left arm (1), right leg (/), and left leg (\). The guesser wins if all of the letters of the word are guessed and loses if the entire mouse and person are drawn (i.e. 7 incorrect guesses). For this program, you are provided with a python file called 'words.py'. Put this file in the same folder/directory as your Lab_4_XX.py file. The first line of code in your program should be 'from words import*. This will import a list called words, which has common 4 to 11 letter words. Here is what the start of the game looks like: Here is what the game looks like after an initial first guess: __O____ Letters guessed: o Here is what the end of the game looks like if the player guesses 7 incorrect letters: 0 ハハ Screen shots of a complete game can be found at the end of the specifications. 2
Expert Answer:
Answer rating: 100% (QA)
Import the list of words from the provided wordspy file Select a random word from the list as the wo... View the full answer
Related Book For
Systems Analysis and Design in a Changing World
ISBN: 978-1305117204
7th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd
Posted Date:
Students also viewed these programming questions
-
a. Most of the world uses Celsius degrees when measuring temperature. Look up the formula for converting degrees Celsius (C) to degrees Fahrenheit (F) and write the formula in the space below. Is...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
D E Factor the expression. 4x-16x+15.
-
Elaborate the basic functioning of a hydraulic lift. Include the terms pressure, density, and buoyant force in the explanation. Give one example of a hydraulic lift you have encountered.
-
Two thin lenses with focal lengths of magnitude 15.0 cm, the first diverging and the second converging, are placed 12.00 cm apart. An object 4.00 mm tall is placed 5.00 cm to the left of the first...
-
A bacteriologist is interested in the effects of two different culture media and two different times on the growth of a particular virus. She performs six replicates of a 22 design, making the runs...
-
What statistics are available for determining the strength of association in cross-tabulation?
-
International transfer pricing, taxes, goal congruence. Argone Division of Gemini Corporation is located in the United States. Its effective income tax rate is 20%. Another division of Gemini,...
-
2. YA Y F FA 12 C 0=60 X In the figure, XY-coordinate system is the global coordinate System, and xy-coordinate system is the local coordinate system. The force vector at C on truss element is given...
-
a. Which of the unit shipping costs given in Table 3.9 e has the smallest margin for error without invalidating the optimal solution given in Figure 3.10 9 ? Where should the greatest effort be...
-
Cullumber Industries collected $104,000 from customers in 2022. Of the amount collected, $24,300 was for services performed in 2021. In addition, Cullumber performed services worth $40,300 in 2022,...
-
9. Eloise plans to accumulate 100,000 at the end of 42 years. She makes the following deposits: (i) X at the beginning of years 1-14; (ii) No deposits at the beginning of years 15-32, and (iii) Y at...
-
10. You are given: S 2 = t>0. 10+t' Calculate 4.
-
Suppose the pre-acquisition market capitalization of Amersham was $8 billion and that this market capitalization did not reflect the possibility that Amersham will be acquired. In order to justify...
-
A payment of $20800 is to be made every year for 15 years. The first payment occurring is one year's time. The interest rate is 7%. What is the PV of the annuity?
-
Explain clearly why certain news can possibly effect the stock price of a corporation?
-
The financial crisis of 2008-2010 threatened to cause all large banks in the developed countries to go bankrupt and destroy a large portion of the money supply. In response, the governments of those...
-
DC has unused FTC carryover from 2017 in the separate category for GC income as the result of income generated by a foreign branch. The income was foreign source general category income. In 2018 the...
-
What is meant by separation of responsibilities?
-
What does the term chaordic mean?
-
What is a class, a domain class, and the key parts of a class diagram?
-
Who was Phar-Mors flamboyant Chief Executive Officer?
-
Which of the following generally is not considered something of value? 1. Cash, money or checks 2. Airline miles or hotel credits associated with frequent activity (e.g., frequent flier miles) 3. An...
-
Which of the following is not one of the five major categories of fraudulent disbursements? 1. Payroll schemes 2. Expense reimbursement schemes 3. Shell company schemes 4. Billing schemes
Study smarter with the SolutionInn App