Question: Lang c++ help with set up (90 pts) Problem Statement: Write a C++ program that plays the game of Yahtzee. Here are instructions for playing

Lang c++ help with set up  Lang c++ help with set up (90 pts) Problem Statement: Write
a C++ program that plays the game of Yahtzee. Here are instructions

(90 pts) Problem Statement: Write a C++ program that plays the game of Yahtzee. Here are instructions for playing the game: http://www.hasbro.com/common/instruct/Yahtzee.pdf You can also find a mobile version to play in the Google play store or App store. Your game will allow 1-2 players, and at the end, you need to ask if the user wants to play again and with how many players. There are 5 six-sided dice in the game and you get three rolls to try to make something on the scoresheet. You must use an array to hold the values of the 5 dice and an array to hold the scores for the 16 categories for a player The top half of the scoresheet is only a sum of 1 or more of dice you are trying to get 1s, 2s, 3s, 4s, 5s, and 6s, and if you score 63 or more points in this section, you get an additional 35 points. The bottom half of the scoresheet consist of options that have pre-defined points or a total of all the dice. You have the options for a three of a kind (total of all dice, but has to have 3 or more of the same number), four of a kind (total of all dice, but has to have 4 or more of the same number), full house (25 pts, 2 dice the same and 3 dice the same) small straight (30 pts, 4 numbers in a row), large straight (40 pts, 5 numbers in a row) Yahtzee (50 pts, 5 dice the same number), up to 3 bonus Yahtzees (100 pts each, 5 dice the same number), and chance (total of all dice, any combination) After your first roll, a player can choose to roll 0-5 specific dice again. The player needs to state how many dice they want to re-roll and which ones they want to re-roll by providing the array indices for each die. If the player chooses not to roll again or has rolled 3 times, then the player must choose a category not previously chosen on the scoresheet. If the dice do not match the rules for that category, then the player take 0 for that category. Once a category has a score (even a zero score), it cannot be chosen again, so think carefully about what value you are going to use to initialize the scoresheet

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!