Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone explain to me this function in detail and how to change the output to a 5 card output ?? the shuffling function used
Can someone explain to me this function in detail and how to change the output to a 5 card output ??
the shuffling function used is this :
/* deal cards in deck/ void deal (const int wDeck[1[13], const char "wFace[, const char "wSuit[l) int row /row number / int column ; /*column number/ int card = 0; /* card counter */ /* deal each of the 52 cards */ for (card 1; card 52; card ++) / loop through rows of wDeck / for (row ; row3; row++) /* loop through columns of wDeck for current row */ for (column = 0; column 12; column ++) /* if slot contains current card, display card / if (wDeck[row][column]card) printf ("X5 s of %-85%c", wFace[column], wsuit[row), card % 2 e ? . ' "It')
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