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.