Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this program, you will implement the scoring function for Yahtzee not the entire game, just the part that calculates how many points the dice
In this program, you will implement the scoring function for Yahtzee not the entire game, just the part that calculates how many points the dice are worth. Here is an excerpt from the Wikipedia articlethat explains the scoring rules for the game:
The Yahtzee scorecard contains thirteen boxes divided between tw sections: the upper section, and the lower section. Upper section In the upper section, each box is scored by summing the total number of dice faces matching that box. For example, if a player were to roll three twos among the five dice, the score or the "TWOS" box would be recorded as 6. Lower section The lower section contains a number of poker-themed combinations with specific point values: Category Description Score Example Three- At least three dice Of-A- Kind Sum of showing the same face all diceo Four-Of At least four dice A-Kindshowing the same face all dice Sum of Full A three-of-a-kind and a House pain 5 The Yahtzee scorecard contains thirteen boxes divided between tw sections: the upper section, and the lower section. Upper section In the upper section, each box is scored by summing the total number of dice faces matching that box. For example, if a player were to roll three twos among the five dice, the score or the "TWOS" box would be recorded as 6. Lower section The lower section contains a number of poker-themed combinations with specific point values: Category Description Score Example Three- At least three dice Of-A- Kind Sum of showing the same face all diceo Four-Of At least four dice A-Kindshowing the same face all dice Sum of Full A three-of-a-kind and a House pain 5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started