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!
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
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
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme