Gin Rummy by Fupa

This game is played by 2 players. At the start of a game each player is dealt 10 cards, 1 card is put face up as the first card in the discard pile, the rest of the cards are put face down as the stock pile. The first player starts the round by picking up a card in the discard pile or the stock pile, and then discarding a card from his hand to the discard pile, then the next player starts his round, and so on. The cards on hand form melds and deadwoods. Melds are 3 or 4 cards of the same rank; or 3 of more cards of the same suit in sequence. Melds cannot overlap so one card cannot belong to two melds. The rest of the cards are called deadwood cards, each deadwood card has points, A has 1 point, 2 has 2 points, etc, J, Q, K has 10 points. The object of this game is to reduce the deadwood points. After discarding a card, the player can knock if his deadwood points are less than or equal to 10. The other player can have a chance to lay off his deadwood cards if they can form melds with th