Gin Rummy

Draw a card, discard a card, and get the leftover cards in your hand — the deadwood — down to 10 points or fewer, and you can knock to end the hand. The game always scores your hand by its best possible split into melds, not by how you happened to arrange it, so the deadwood total on screen is never a guess.

Play in your browser About Simple Games

The table, the cards and what a meld is

Gin Rummy is played 2 against the CPU with a standard 52-card deck. Each card's point value is its own: an ace counts 1, cards 2 through 10 count their face value, and a jack, queen or king each count 10 — this one table is what deadwood, the knock limit and every settlement in the game add up from.

A meld is either a set — 3 or 4 cards of the same rank — or a run — 3 or more cards of the same suit in consecutive order. An ace is always low, so ace-2-3 is a run and queen-king-ace is not. Any card that doesn't belong to a meld is deadwood, and its point total is the number this whole game revolves around.

Taking the upcard, then drawing and discarding

Whoever isn't dealing gets first right to the upcard: take it, or pass. If both players pass, the non-dealer draws blind from the stock and the hand is properly under way; the passed-up upcard isn't available again that turn either way.

From there each turn is draw, then discard: pull the top card of the stock or the top of the discard pile, then put one of your 11 cards back down. A card you just took from the discard pile can't be discarded again in that same turn — it closes off a free look at a card you didn't really want.

Knock, Gin and Undercut

After drawing, if the best possible split of your remaining 10 cards leaves 10 points of deadwood or less, you can knock instead of discarding — lay your 11th card face up on the discard pile, and the hand ends there. Zero deadwood on a knock is Gin, worth more than an ordinary knock.

Both hands are scored by their best possible split, not by the melds you happened to lay them out in — the game always finds the lowest deadwood available, whether or not that's the arrangement you were looking at. On a Gin, the loser can't lay off any cards, and the winner takes the loser's deadwood plus 25 points. On an ordinary knock, the loser gets to lay off — attach cards from their own hand onto the knocker's melds, stretching a run at either end or completing the 4th card of a set — before the deadwood is compared.

Dead hands, and winning the match

A hand can also end without anyone scoring. Once the stock is down to 2 cards after a discard, nobody can draw for the next turn, so the hand is declared dead: no points change hands, and the same player deals again. Reaching 2 cards in the stock doesn’t stop a knock, though — a knock that lands first always beats a dead hand, even on the very turn the stock runs out.

The match itself is a race to 100 points. Whoever gets there first wins outright — there's no draw in Gin Rummy, since only one side can reach 100 first. The screen shows the final score and the hand that decided it, and the next match doesn't cost anything to start.

Easy, Normal and Hard

There are 3 opponents, and every one of them is built from the same heuristics rather than a lookahead search — the heaviest calculation any of them does is working out the single best split of an 11-card hand, and that's cheap even by brute force. The difference between the 3 is what each one looks at, not how long it thinks.

Whatever the difficulty, the CPU only ever sees what's actually public: its own hand, the discard pile, the stock's card count (never its order or contents), and how many cards you're holding. It can't see your hand and it can't see what's left in the stock — nothing about a stronger opponent changes that.

EasyNormalHard
Hand evaluationDeadwood points onlyPoints minus 2 for each live pair (up to 3)Same, but a pair that's already fully visible elsewhere doesn't count
Picks up the discardOnly if it completes a meld or gets within knock rangeAlso if pairing up genuinely improves the handSame, weighing whether that pair can still turn into something
Discard dangerNot consideredNot consideredAvoids cards near the rank or suit of what you've already picked up
Knocks atAny time it can7 points or under5 points or under (10 if you've already picked up twice)
Late stock (10 or fewer left)Knocks whenever it canKnocks whenever it can

Gin — 0 deadwood — is taken at every difficulty without exception, since there's no reason to pass up a hand worth 25 points that can't be laid off against. What Easy doesn't weigh is the other side of that coin: knocking at 10 can hand back 25 points the other way if it gets undercut, and Easy doesn't know that.

Undo, and the help this game actually gives

There's no Undo here, and that's not an oversight. On the 4 games where taking a move back exists, both sides always see the same board — undoing removes a decision, nothing more. This game has cards nobody else can see: watching what the CPU took, then stepping back, would let you keep something you can't legally know when the position resets. What Undo would take back is your move; what it can't take back is what you learned.

There's no Hint either. Deciding what to draw, what to discard and when to knock is the entire game — a suggested move would just be the game playing your hand for you instead of its own.

Tips

Questions people ask

Is there a timer while I'm playing?

No clock shows while you play — the score and your current deadwood are what stay on screen. Your playing time is only kept afterward, in your statistics.

Can I actually lose, and is there ever a draw?

Yes — if the CPU reaches 100 points before you do, the match is a loss. There's no draw in Gin Rummy: only one side can reach 100 first, so a match always ends with a winner.

Is the deadwood display or the meld sorting free?

Yes, both are free from the first launch, and no game feature is ever behind an ad or a purchase. There's no Hint to buy, either — it's simply not offered at any price.

Why isn't there an Undo?

Because this isn't a game where both sides see the same information. Taking a move back after watching the CPU's response would leave you knowing something — what it wanted from the discard pile, say — that you couldn't un-know just because the cards moved back. Undo can take back a move; it can't take back what you learned from making it.

Does the CPU see my hand?

No. Whatever the CPU acts on is limited by design to what's actually public at the table: its own hand, the discard pile, the stock's card count, and how many cards you're holding — never the cards themselves in your hand or in the stock. That's true at every difficulty, Hard included.

Do I need an internet connection?

The Android app plays from the first launch with no connection: your hand, the CPU's decisions and your saved match all live on your device, and there's nothing to download and no account to make. The browser version needs to load the page once, and then the game itself runs in your browser.

Everything described here is implemented in the open: read the source code on GitHub.