logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Herman BerensLaw
(5/5)

824 Answers

Hire Me
expert
Lynette WhiteGeneral article writing
(5/5)

988 Answers

Hire Me
expert
Doug BeaucheminAccounting
(5/5)

584 Answers

Hire Me
expert
Sunil AgnihotriComputer science
(5/5)

917 Answers

Hire Me
Python Programming
(5/5)

Create a main function. All of the code you write will be in the main function.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

python program for a classic “wheel of fortune” game Here are the details:

1. Create a main function. All of the code you write will be in the main function.

2. Read a file that has puzzles and store the puzzles in a list. 3.Read in a file that has scores for the wheel and store the scores in a list.

4. Choose a random puzzle

5. Display the puzzle to the user as underscores

6. Ask three players to enter their name

7.Tell the first player his or her name and score (initially the score is 0) 8.Ask the player to spin or solve the puzzle a. If the player chooses spin, randomly choose a value from the list of scores A value of -1 is Bankrupt. If the player spins a Bankrupt: O the player loses his or her turn and the score is set to 0 O Show the next player his/her score O Ask the player if he/she wants to spin or solve A value of -2 is Lose a Turn. If the player spins Lose a Turn: O The player loses his or her turn o O Show the next player his/her score Ask the player if he/she wants to spin or solve If the player gets a value other than -1 and -2, ask the player to buy a letter. iv. If the letter is in the puzzle: O Compute the score for the player add the computed score to the players current score O O Show the player his/her score Display the puzzle with the letter the player guesses

V. If the letter is not in the puzzle, the player loses his or her turn vi. If the letter is already guessed, the player loses his or her turn (this means you must use a list to keep up with previous guesses) b. If the player choses solve the puzzle, ask the player to enter in the puzzle Check to see if the player's input matches the puzzle i. If the player's input matches the puzzle, show the player his or her current score, and end the game (remember you can use break to get out of a while loop) If the player's input does not match the puzzle, the player loses his or her turn. It is the next player's turn. 11. Continue playing the game until a player solves the puzzle or guesses all letters Here is how the main function should work:

1. Call get wheel values to get the wheel values 2. Call get_wheel_ puzzles() to get the wheel puzzles

3. Call choose puzzle() to randomly choose a puzzle from wheel puzzles

4. Call turn _puzzle into_underscores(puzzle) to change the puzzle into underscores

5. Ask three players to enter their name 6. While the puzzle hasn't been solved or the number of letters left is 0 7. Tell the first player his or her name and score (initially the score is 0) I’ve attached sample interactions and how the outcome of the program should look like Thank you!

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme