Question: 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.

I am trying to make 2 function for a yahtzee game in

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

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!