Algorithm: The Wheel of Fortune hangman n the game


Programming Project: The Wheel of Fortune
Write YI_WheelOfFortune.py using what you learned from hangman.py

Due date: November 25th, 2015

Screen Shot 2015-11-20 at 7.46.00 AM —> Screen Shot 2014-11-16 at 5.52.28 PMScreen Shot 2014-11-16 at 5.53.09 PM

For the last few days We have worked on understanding and assimilating Al Sweigart’s hangman.py program by taking the program apart and tracing it with different data to make sure we tested every line of code.

Now we can use the skills we learned to write a similar program to simulate the Wheel of Fortune. You can use the displayboard and getguess functions. You can collaborate with a partner but you should have your own program. No two programs should be alike!

The original game is multiplayer but you will implement it for only one player. Even though the behavior of the game should be reflected in your simulation, there are changes that have to be made to turn it into one player and still be a fun game. You might want to apply a penalty when the “lose a turn” comes up. This implementation of the Wheel of Fortune should handle only a word.

Somethings to keep in mind
Components that can help you through the process:

  1. A list of items on the wheel
  2. Random number for the spin simulation
  3. The “secret word”
  4. The “missed letters”
  5. The “correct letter”
  6. A “place holder” for the prizes

THE GAME

  1. Spin of the wheel: { gain or loss }
  2. If there is a gain, the player can guess a letter: { correct -> keeps the prize, incorrect -> loses the prize }
  3. The player can solve the puzzle before all the letters have been guessed.
  4. The player can buy a vowel if there is money in the “place holder”.
  5. The player gets to keep the prizes if the puzzle is solved.

NOTE: the program should allow the user to play the game after the puzzle was solved.