Description: In-Between is a well-known card game. Many variations existwe define it as follows. One deck of cards is used. A game consists of one or more "hands. " A player starts with a certain number of chips called the stake (say 100) and must risk one or more chips on each hand before seeing any cards. As long as the player still has chips and there are three or more cards left in the deck (enough to play a hand), the game continues. For each hand the player must risk between one and their total number of chips. Two cards are dealt face up. Then a third card is dealt. If the third card is in-between the first two cards, based on the ranks of the cards, the player's chips are increased by the amount risked. Otherwise, they are decreased by that amount.

1. Implement the game. The application user is the "player. "

2. If the first two cards dealt are of the same rank, that hand is over and the player is awarded two chips.

3. Allow the player at his or her discretion to double the risk after seeing the first two cards.

Figure: see image.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.