Bicycle Gin

Description
Bicycle Gin is an adaption of Gin, itself a variant of the card game Rummy. In this game, both participants—in this game the player and the computer—are dealt 10 cards. Players then take turns drawing cards from the stock pile and deciding whether to keep or discard them. This process continues until the stock pile is depleted, resulting in a draw, or until one player "knocks." Knocking is possible when a player's remaining unmatched cards have a combined point total of 10 or less (cards that form valid combinations are excluded from this total). Once a player knocks, both hands are compared, and the participant with the stronger hand is declared the winner.
Bicycle Gin includes an automatic combination-ordering feature but also allows players to arrange their hands manually.