Gin Rummy

At each round, you can pick either upturned card on the discard pile in the middle or the downturned card on the stock pile next to the discard pile, then discard a card to the discard pile.Your hand forms melds and deadwoods. Melds are 3 or 4 cards of the same rank, or 3 or more cards of the same suit in sequence. Melds cannot overlap so one card cannot belog to two melds. The remaining unmatched cards are called deadwoods. Each deadwood card carries deadwood points.A has 1 point, 2 has 2 points, etc, and J. Q. K. carry 10 points each, and your aim is to reduce the deadwood points.The game ends when the score of A player reaches 100.