Question: In this homework, you will be implementing a simple word scramble game. In the Word Scramble Game (WSG), scrambled words are presented to the user.

 In this homework, you will be implementing a simple word scramble

In this homework, you will be implementing a simple word scramble game. In the Word Scramble Game (WSG), scrambled words are presented to the user. It is then up to the user to provide guesses until they have provided the correct, unscrambled answer. The game has three different "levels" available for the user to play: easy (five letter words), medium (six letter words), and hard (seven letter words) When the game first begins, the user will provide how many rounds they would like to play the game. Then, at the start of each round, the user will enter which level they would like to play: 5, 6, or 7 (where 5 corresponds to playing with five letter words, 6 corresponds to six letter words, and 7 corresponds to seven letter words). A random word is then selected from the appropriate word list and is scrambled before being presented to the user for guessing. Each round keeps track of how many attempts it took for the user to guess the correct word After the user has played as many rounds as they have specified, the game should end. There are several mechanisms in the game to help the user get to the end, if needed. First, if the user gets stuck they can provide 'hint' as their answer to get the first three (3) letters of the correct word provided for them. Second, if the user would simply like to quit the game early, they can provide 'exit' as their answer For this assignment, you will first prompt the user with how many rounds they would like to play. They must specify that they would at least like to play one (1) round, and the most they can play is twenty (20) rounds. After getting the number of rounds that should be played, you will do the following in order to implement and play the game: Write a function that gets a word to be scrambled from the appropriate word list (based on the selected ve Write a function that takes a word and outputs a scrambled (or shuffled) version of the word. Write a function that plays a round of the Word Scramble Game. Each round should track how many attempts it takes to complete that round. Incorrect answers and hints count as attempts. If the user guesses the correct answer on the first try, it took one (1) attempt Write a function that starts and plays the specified number of Word Scramble Game rounds. You must use the constants defined at the top of the game.cpp file where appropriate. In this homework, you will be implementing a simple word scramble game. In the Word Scramble Game (WSG), scrambled words are presented to the user. It is then up to the user to provide guesses until they have provided the correct, unscrambled answer. The game has three different "levels" available for the user to play: easy (five letter words), medium (six letter words), and hard (seven letter words) When the game first begins, the user will provide how many rounds they would like to play the game. Then, at the start of each round, the user will enter which level they would like to play: 5, 6, or 7 (where 5 corresponds to playing with five letter words, 6 corresponds to six letter words, and 7 corresponds to seven letter words). A random word is then selected from the appropriate word list and is scrambled before being presented to the user for guessing. Each round keeps track of how many attempts it took for the user to guess the correct word After the user has played as many rounds as they have specified, the game should end. There are several mechanisms in the game to help the user get to the end, if needed. First, if the user gets stuck they can provide 'hint' as their answer to get the first three (3) letters of the correct word provided for them. Second, if the user would simply like to quit the game early, they can provide 'exit' as their answer For this assignment, you will first prompt the user with how many rounds they would like to play. They must specify that they would at least like to play one (1) round, and the most they can play is twenty (20) rounds. After getting the number of rounds that should be played, you will do the following in order to implement and play the game: Write a function that gets a word to be scrambled from the appropriate word list (based on the selected ve Write a function that takes a word and outputs a scrambled (or shuffled) version of the word. Write a function that plays a round of the Word Scramble Game. Each round should track how many attempts it takes to complete that round. Incorrect answers and hints count as attempts. If the user guesses the correct answer on the first try, it took one (1) attempt Write a function that starts and plays the specified number of Word Scramble Game rounds. You must use the constants defined at the top of the game.cpp file where appropriate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!