Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python 3.6.5 Help Here is the input file: Description: Read the input file (words.txt) into a dictionary, and then pick a word randomly or sequentially,
Python 3.6.5 Help
Here is the input file:
Description: Read the input file ("words.txt") into a dictionary, and then pick a word randomly or sequentially, scramble it, and ask the player to guess it. Remember, the longer the words the more points s/he will score (ex: door 40 points, store 50 points, etc.) This program will run until the list is completely exhausted or the player enters "exit". After each round, this program will ask the player if s/he wants to continue the game. The player can also type "hint" to get the definition of the word. Requirements: Print some information about the game Pick a word randomly or sequentially, and scramble it . o The scrambled word must be different from the original word Display the word to the player, and ask the player to solve the scrambled word o Give the player 3 chances to guess the word o Display the word definition if the player asks for a "hint" o After each round, ask the player if s/he wants to continue the game o if the guess is correct print "Congratulation, you win" o if the guess is incorrect, print "Sorry, you didn't win" Display the player's final score at the end of the gameStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started