guess that number - 12/05/2023 12:00 EDT

Job ID: 36567715

Budget: $8 – $15 CAD

Instructions :

Complete the enclosed problem. Your submission should be copied to the Blackboard assignment inbox for this course using the naming convention Lastname_Firstname_Assignment2A.zip

Game: NumberCruncher

Game Overview:

'NumberCruncher' is a variant of the 'Guess-That-Number' game. In 'Guess-That-Number', the user is asked to guess a value within a certain range of values. For instance, the user would be asked to guess a number between 1 and 10. In most implementations of the game, the user is provided a number of attempts to guess the number. If they successfully guess the correct number, they win.



'NumberCruncher' will be similar to that of 'Guess-That-Number', however, it will have increasing complexity by guessing multiple numbers in the range, and increasing sizes of ranges as the levels increase.

Mechanics:

· The player will be welcomed to the game (splash screen)

· The player will be asked to provide their initials, for recording high scores

· The player will be asked to select one of three starting levels (easy, moderate, difficult)

o Easy will start with a range of 1..10, three guess 'tracks', and a limit of 5 bad guesses per track

o Moderate will start with a range of 1..100, five guess 'tracks', and a limit of 7 bad guesses per track

o Difficult will start with a range of 1..1000, seven guess 'tracks', and a limit of 11 bad guesses per track

· Based on the starting level, the application will generate a list of 1000 random numbers within the specified range. The list will then be analyzed to determine the statistical mode of the dataset. The mode will become the number the player will try to guess. Note that this process will need to be completed for each of the 'tracks'. If more than one mode is determined in the dataset, a new dataset is generated.

· The player will guess each 'track' in succession. The player area will display the value they selected, and then display an 'X' if they guessed the wrong value and a checkmark if they guessed the correct value.

· In addition to the 'X' or checkmark, an arrow will accompany the results to assist the player in determining if the value they provided is too low, or too high.

· Guesses that are not used are moved over to the next level. (Example: if the player guesses the correct number in 2 tries, and was permitted 3 tries, the unused guess is transferred to the next level)

· Each subsequent level's range is increased by 10 (for 10,20,30,40,50,60,70,80,90), 100 (100,200,… 900), and so on.



Scoring: Scoring will be determined based on the spare guesses that the player has when the level is complete. Each spare is worth 10 points, however, a bonus of 50 points is provided for every 3 spares that are accumulated in the level.





Game State: The player's state is maintained by a user profile containing the player's initials, their score, and the levels that they have completed.



In this assignment you will need to implement the following features

· Splash screen

· Prompting for player initials

· Prompting for difficulty level

· Number to guess for each track

· Player view (no game functionality)