Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help writing the following game in C and describe steps taken . Thank you Develop and implement an interactive two-player Yahtzee game. Yahtzee is

Please help writing the following game in C and describe steps taken . Thank you

image text in transcribedimage text in transcribedimage text in transcribed

Develop and implement an interactive two-player Yahtzee game. Yahtzee is a dice game that was invented by Milton Bradley and Edwin S. Lowe in 1956. The challenge of the game is to outduel the other player by scoring the most points. Points are obtained by rolling five 6-sided die across thirteen rounds. During each round, each player may roll the dice up to three times to make one of the possible scoring combinations. Once a combination has been achieved by the player, it may not be used again in future rounds, except for the Yahtzee combination may be used as many times as the player makes the combination. Each scoring combination has different point totals. Some of these totals are achieved through the accumulation of points across rolls and some are obtained as fixed sequences of values The Rules of Yahtzee The scorecard used for Yahtzee is composed of two sections. A upper section and a lower section. A total of thirteen boxes or thirteen scoring combinations are divided amongst the sections. The upper section consists of boxes that are scored by summing the value of the dice matching the faces of the box. Ifa player rolls four3's, then the score placed in the 3's box is the sum of the dice which is 12. Once a player has chosen to score a box, it may not be changed and the combination is no longer in play for future rounds. If the sum of the scores in the upper section is greater than or equal to 63, then 35 more points are added to the players overall score as a bonus. The lower section contains a number of poker like combinations. See the table provided below: Name ree-of-a- Four-of-a-kind Full house Small straight Large straight Yahtzee (think five-of-a-kind) Chance Combination Three dice with the same face Four dice with the same face One pair and a three-of-a-kind A sequence of four dice A sequence of five dice Score Sum of all face values on the 5 dice Sum of all face values on the 5 dice 25 30 40 Five dice with the same face 50 May be used for any sequence of dice Sum of all face values on the 5 dice this is the catch all combination For this assignment you are required to define, at a minimum, the some similar functions to the provided below: void startNewGame (void) void setupGameBoard (void)i void rol!Dices (Dices dices) ; void chooseDiceToHold (Dices myDices) ; void printMessageBox (Message myMessage) void updateScoreBoard (ScoreBoard myScoreBoard, int category, int score) void computeCategoryScore (Dices myDices, int category, int score) void chooseCategory (Category myCategory)i void printGameRules (void) void printGoodbye (void) int chooseMenuItem (void); void printMainScreen (void)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Apache Cassandra 3 X An Expert Guide To Improving Database Scalability And Availability Without Compromising Performance

Authors: Aaron Ploetz ,Tejaswi Malepati ,Nishant Neeraj

3rd Edition

1789131499, 978-1789131499

More Books

Students also viewed these Databases questions