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.

I am supposed to code up Gin Rummy in C++. I amhaving trouble with calculating the score and in turn, the knock doesn'twork. This is what I have right now. bool knock; // Commencethe game, game continues as long as both players have cards while(knock != 1) // Must call gameplay every play through the handif (count $ 2 == 0) // Player is up user. GamePlay

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

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 Programming Questions!