General Game Description:
In the game of Clacker, the numbers 1 through 12 are initially
displayed. The player throws two dice. The numbers that are
rolled will get covered up (1 to 6). Only if both numbers that are
rolled are covered up previously, then the sum of the two
numbers can be used to cover values from 7 to 12 (you cannot do
this if only 1 number was previously covered). Play continues until
all of the numbers are covered up. The goal is to cover all the
numbers in the fewest rolls (best score).
Features to Include:
The interface design is at your discretion, but be thoughtful and user friendly. The rolls are done
automatically by the program after the user specifies how many rolls to attempt.
Ask user for their name and keep track of their number of rolls.
Ask the user how many rolls to attempt, between 1 and 30 inclusive.
If inputs are invalid (-1, 0, 31… etc), repeatedly prompts the user to re-enter until valid before
rolling.
Display the result after each roll. (what numbers are rolled, what numbers are covered, what
numbers remains, how many rolls already… etc)
If some numbers are not covered, continue to ask for more rolls (between 0 – 30 still).
If the game ends before the max number of rolls is reached, it will stop rolling and only count
the current total number of rolls thus far.
Print a score board at the end of each game. (How many total rolls, what’s the best score… etc)
Provide the player with the option to play again or quit.
Provide validations for all other user inputs (yes/no, etc)