Similar to a popular game show, The Fortuitous Whirling Disk consists of five puzzle rounds. Each round is a Hangman-style puzzle to be solved.
Rounds
Each round is a Hangman style puzzle to be solved. The puzzle category, or clue is displayed. Also puzzle letters are initially displayed by the character _on the screen to show the location of all alphabetic characters in the puzzle. Any non-alphabetic character that might be in the puzzle is automatically displayed. When a correct letter is picked by a contestant, all instances of this letter are displayed in the correct location in the puzzle. This continues until the puzzle is solved. Note that these puzzles are not case-sensitive (e.g. the letter t is treated the same as the letter T ).
Also, once a letter is guessed it is displayed in a different part of the screen so that all contestants can see what letters of the alphabet have been previously guessed.
The Disk
The disk is a random number generator that generates random integers between 0 and 24 (inclusive). Should the random number generator return a 0 this corresponds to Bankrupt ; 13 corresponds to Lose a Turn. All other values are multiplied by 100 and returned as the output of the spin. Bankrupt means that a contestant loses all points accumulated for that round and his/her turn.
A Contestants Turn
A contestant begins their turn by spinning The Disk to determine a points value and guess a consonant. Calling a correct consonant earns the value displayed by The Disk , multiplied by how many times the consonant appears in the puzzle. At any time during a contestants turn, and with sufficient points, the contestant may buy a vowel for a flat rate of 250 points, until all the vowels in the puzzle have been revealed. Guessing a correct letter keeps the contestants turn alive. If the wheel lands on Lose a Turn or Bankrupt, or if the contestant guesses a letter that is not in the puzzle, or guesses a letter that has already been called in that round, or gives an incorrect puzzle solution, the contestants turn is over and control is passed to the next contestant.
Winning the Game
The game is won by the contestant that accumulates the most points during all five rounds.
Puzzles
Puzzle categories and solutions are given to you in a text file on D2L.
Project Requirements
Your code must be written in C
Your code must successfully execute the segments of each game. Each game consists of five segments:
Introduction: The program will ask for the number of contestants (1-4). The program will ask for each contestants name.
Puzzle Selection: The program will randomly select a puzzle from the list of puzzles. Once a puzzle is selected it is removed from the list so that this puzzle cannot be re-selected throughout the rest of the game.
The Spin: Should a contestant choose to spin The Disk, the program will generate a random number as described above
Puzzle Rounds: The puzzle rounds consist of 5 hangman style puzzles to be solved. During the puzzle round the program shall display
The round number.
The puzzle clue
The character to represent letters of the puzzle, that have not yet been guessed.
Correctly guessed letters in their proper locations.
Any non-alphabetic characters that might be part of the puzzle.
All guessed letters so that all contestants can see which letters have been previously selected (correct or incorrect).
The name of the contestant who currently controls the turn.
The value of the current contestants points.
The value of the current contestants total accumulated points from previous rounds.
Also the puzzle rounds will give the current contestant the choice to
Spin the disk and choose a consonant (if spin is successful).
Buy a vowel (assuming the contestant has at least 250 points to cover the cost of the vowel, and that there is a vowel to purchase).
The cost of a vowel is 250 points. This is a flat-rate fee. For example, if the puzzle solution is GOOD MORNING, and the contestant chooses to buy the letter O, then the cost is 250 points and all three letter O s are displayed. Keeping the same example, if a contestant attempts to buy the letter A they are still charged 250 points, and they lose their turn since A is not in the puzzle GOOD MORNING.
There must be a vowel available for purchase. For example, if the puzzle solution is HELLO, and the letters E and O have already been purchased, then buying a vowel is no longer an option.
Solve the puzzle.
A contestant is awarded 2000 points for solving the puzzle, in addition to any points earned during that round for guessing consonants. Thus, for any one round, the minimum award that a contestant earns for solving a puzzle is 2000 points.
After a puzzle is solved, the round number increments. Also, the turn is given to the next contestant (i.e. the contestant whose turn is after the winners). For example, if contestant 2 solves the puzzle for round 4, then contestant 3 will start round 5.
End of Game: The program will report which contestant has the most points accumulated over all five rounds (winner).
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.