Question: I am supposed to code up Gin Rummy in C++. I am having trouble with calculating the score and in turn, the knock doesn't work.
I am supposed to code up Gin Rummy in C++. I am having trouble with calculating the score and in turn, the knock doesn't work. This is what I have right now.






bool knock; // Commence the game, game continues as long as both players have cards while (knock != 1) // Must call gameplay every play through the hand if (count $ 2 == 0) // Player is up user. GamePlay ( deck, comp . ReturnVectorOfMyMeldedCards ( ) , comp. GetName ( ) ) ; else // Computer is up comp . GamePlay (deck) ; count++; //int choice; if (user. CalculateDeadwood ( ) > knock; if (knock == true){ cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
