Gin rummy rewards one decision above all others: when to end the hand. Knock too late and the other player knocks first, or goes gin. Knock too early, with a count they can beat, and they undercut you for 25 extra. This tutorial is about that choice and the few habits that lead up to it: what to throw away, what to pick up, and which card to put down when you knock. For the rules themselves, see the gin rummy rules guide.
What you will learn
- Why knocking early wins more than it loses.
- When waiting for gin, or for a lower count, is worth the risk.
- How to choose the card you put down when you knock.
- Which cards to throw away, and which to keep away from the other player.
- How each computer level plays, and how to beat Hard.
Your first hand here
Start a game of Gin Rummy with the default setup: you against the computer at Medium, playing to 100 points. Your ten cards sort themselves into melds, with the deadwood last, and the number beside Deadwood is the count that matters. The first decision is the upcard: take it only if it joins a meld or nearly does, otherwise pass.
Each turn, tap the stock or the discard pile to draw, then tap the card you want to discard. As soon as one of your discards would leave 10 or less, a Knock button appears beside Discard. With no deadwood at all it reads Gin.
Why knocking early pays
A knock scores the difference between the two counts, so what you need is a gap, not a perfect hand. Early in a hand that gap is usually large. The other player has had only a few turns to shape their cards, and most of their hand is still deadwood. Knock with 8 against a hand still holding 30 and you score 22.
Each turn you wait, both hands improve, but the other hand usually improves faster. You have already made your melds; they are still making theirs. So the gap shrinks, and the risk of an undercut grows. The computer at Medium follows this rule: it knocks with any 10 or less while 22 or more cards are in the stock, then wants a point less for every two cards drawn, and never knocks with more than 3 at the very end.
A useful habit is to count turns by the stock. It starts at 31 and every draw from it takes one. While 22 or more are left, knock with anything up to 10. Below that, ask for a little less each round, and with only a handful left, knock only with a very low count.
The undercut
An undercut happens when the defender, after laying off, has the same deadwood as you or less. They score the difference plus 25, so a knock with 8 can turn into 30 points for the other player.

Ana knocks with 8, the eight of spades. Ben lays off the three of hearts on her run of hearts and is left with the ace of clubs and the two of spades: 3. That is less than her 8, so Ben scores the difference, 5, plus 25 for the undercut.
Two things lead to undercuts. The first is knocking late, when the other hand is nearly made. The second is knocking with melds the defender can add to. In the picture, Ana’s run of hearts gives Ben a place for his three of hearts, and that is what lets him beat her count. The game shows you the knocker’s melds in the split with the fewest such openings, but your own discards decide how many openings you have.
When to wait for gin
Gin scores 25 plus the other player’s whole deadwood, with no lay-offs and no undercut. It is worth waiting for when:
- you are one card away, with two or more different cards that complete you;
- the stock is still long, so there are turns left to draw it;
- the other player is not taking cards from the pile, which suggests their hand is not close.
It is not worth waiting for when your only way to gin is one exact card, or when the other player has picked up two or three cards from the pile. Then a knock now is worth more than a bigger score that may never come.
Which card to put down
When you knock you put one card face down. Pick the one that leaves the least deadwood, not simply your highest card. If your highest card is the end of a run, putting it down can cost you nothing, or it can break a meld and leave you over 10.
Your move: which card do you put down?
Which card do you put down?
You are Player 1, with eleven cards after your draw: 13 in deadwood. Which card do you put down to knock with the least deadwood?
Tap the card you would put face down.
The game helps here: tap Knock without choosing and it picks the card that leaves the least, raised in your hand, so you can see it before the second tap.
What to discard
Most turns end with a discard rather than a knock, and good discards are what make early knocks possible.
- Throw high cards early. A king, queen or jack that fits nothing costs 10 if the other player knocks. A four costs 4. Early in a hand, keep low cards and let the high ones go.
- Keep cards that can grow. Two cards of the same rank, or two cards one apart in a suit, each wait for one card to become a meld. A pair of fives is worth more than a lone queen.
- Don’t feed the other player. Every card they take from the pile is public. If they took a seven, they are building with sevens or with the cards around it in that suit: don’t discard another seven or its neighbours.
- Discards tell you what is safe. A rank the other player threw away is one they are probably not collecting, so a card of that rank is a safer discard.
What to take from the pile
Take the top card of the discard pile when it goes straight into a meld or turns a near meld into one that is nearly certain to finish. Otherwise draw from the stock: a card from the pile shows the other player what you are building, while a card from the stock tells them nothing.
The upcard is the same choice. Take it if it fits with two of your cards, pass otherwise. If both players pass, the first player draws from the stock.
How the computer plays
Each level plays only from what its own seat could see, the same cards you could see in its place:
| Level | How it plays | Measured over 400 hands |
|---|---|---|
| Easy | Keeps its melds, throws its highest loose card, but about one discard in three is any of its deadwood; knocks as soon as it can | — |
| Medium | Judges each discard by the deadwood a few draws ahead, avoids cards you took from the pile, knocks early and waits later | Beats Easy in 57% of hands that score, 6.3 points a hand ahead |
| Hard | Medium’s best few discards tried against guesses at your hand: which you are most likely to use, and whether a knock now beats playing on | Beats Easy in 61% of hands that score, Medium in 57% |
A single hand of gin rummy has a lot of luck in it: even Hard loses about two hands in five to Easy. Over a game to 100 those edges add up hand after hand. To beat Hard, knock early with low counts, keep its picked-up cards in mind, and never give it the card it is waiting for late in a hand.
Practice plan
- Play three hands at Easy and knock the first time the button appears. Notice how often the computer is still holding high cards.
- Play a game to 100 at Medium. Before each discard, glance at the cards it took from the pile.
- Try waiting for gin once or twice when you are one card away early in a hand, and see how often it comes.
- Move to Hard and keep a count of undercuts against you. If they come often, knock earlier or with lower counts.
When you are ready, start a game of Gin Rummy, and keep the rules guide open for any question about lay-offs and scoring.