Midterm Project Plan

Project Title

Wheel of Fortune Word Game

Project Description

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.

Game Rules

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.

How the Project Meets the Requirements

Variables

Variables will store the current puzzle, the player score, guessed letters, and the value from the wheel spin.

Comments

The JavaScript code will include comments explaining the purpose of each section of the program.

Operators

Operators will be used to update the player's score and evaluate guesses.

Functions

Objects

Objects will represent each puzzle and contain the phrase and category.

Events

Events will occur when players click buttons such as Spin Wheel, Buy Vowel, Guess Letter, or Solve Puzzle.

Strings

Strings will store puzzle phrases and player guesses.

Arrays

Arrays will store multiple puzzles and letters that have already been guessed.

HTML Interface

Screen Sketch

Figure 1: Proposed Wheel of Fortune Game Interface Layout

Wheel of Fortune Game Layout Sketch