Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to make 2 function for a yahtzee game in C. the Function identifies if the dices (5) can be a small straight

I am trying to make 2 function for a yahtzee game in C. the Function identifies if the dices (5) can be a small straight and the other one if it can be Large straight. I just need it to return me True or False.

I added my other functions if it helps.

image text in transcribed

266 Bint four of indint playerdicell) 267 int counter e; for (int i e; i 6; i+) 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 if (playerdice[11] .. i) counter+H if (counter4) 6 else counter if (counter 4) return FOUR OF A_KIND; else return e 287 288 289 eint yahtzee(int playerdice[1 290 t 291 292 1 293 294 295 int counter e for (int . o;

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Write down the African American Abortion?

Answered: 1 week ago