Wheel of Fortune Word Game
My midterm project will be a browser-based game inspired by the television game Wheel of Fortune. The player will spin a wheel to earn points and guess letters to reveal a hidden word or phrase.
The goal of the game is to correctly guess the entire phrase before running out of turns. The game will display blank spaces for each letter in the phrase. When the player guesses a correct letter, it will appear in all correct positions. If the player guesses incorrectly, they lose their turn. The player may also attempt to solve the puzzle at any time.
This game will follow rules similar to the television game Wheel of Fortune. Players will spin a wheel to determine how many points a consonant is worth. If the player guesses a correct consonant, their score will increase based on the wheel value multiplied by the number of times the letter appears in the puzzle.
Vowels work differently from consonants. Instead of spinning the wheel, the player may choose to buy a vowel at any time. Buying a vowel costs 250 points from the player's score.
If the vowel appears in the puzzle, the letter will be revealed in all correct positions on the puzzle board. If the vowel does not appear, the player still loses the 250 points.
If the player does not have at least 250 points, the game will not allow them to buy a vowel and a message will notify the player that they do not have enough points.
Variables will store the current puzzle, the player score, guessed letters, and the value from the wheel spin.
The JavaScript code will include comments explaining the purpose of each section of the program.
Operators will be used to update the player's score and evaluate guesses.
Objects will represent each puzzle and contain the phrase and category.
Events will occur when players click buttons such as Spin Wheel, Buy Vowel, Guess Letter, or Solve Puzzle.
Strings will store puzzle phrases and player guesses.
Arrays will store multiple puzzles and letters that have already been guessed.
Figure 1: Proposed Wheel of Fortune Game Interface Layout
