Play Gin Rummy against the computer at three levels, to 50 or 100 points, with your hand grouped into the best melds as you go.
You
0
Computer
0
Computer
Stock
Discard
Your cards
Draw from the stock or take the top discard (keys S and D), then pick a card and press Discard to throw it away (or press the picked card again, or X). Your cards are grouped into runs (three or more in a row of one suit, ace low) and sets (three or four of one rank); loose cards are deadwood and count against you. Knock (K) when the cards you keep have 10 or less deadwood; with none you go gin. You cannot throw back the card you just took from the discard pile. Arrow keys move between your cards. H gives a hint. Using a hint means this match will not count as a win.
An ace is 1, a 2 to 10 is its number and a jack, queen or king is 10. When someone knocks, the other player lays off any loose cards that extend the knocker's melds (not after gin), and then the hands are compared. If the knocker has less deadwood they score the difference. With gin they score 25 plus the other player's deadwood. If the other player has the same or less, it is an undercut and they score the difference plus 25. If the stock is down to two cards after a discard the hand is a draw. The first to the target wins the match.
To group your cards the page tries every way to pick sets and runs and keeps the one with the least deadwood. Easy only takes a discard that completes a meld, throws away its highest card and knocks as soon as it can. Medium also takes a discard that brings it into knocking range and waits for 7 or less. Hard waits longer early on, remembers which discards you picked up and avoids feeding you cards near them.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Two players, a standard 52-card pack, 10 cards each. One card is turned face up to start the discard pile. The player who did not deal goes first, and you take turns. Points only: there is no money or betting.
Your cards are shown grouped into melds and loose cards. A set is three or four cards of the same rank. A run is three or more cards in a row of the same suit, with the ace low only (so Q-K-A is not a run). The loose cards are your deadwood: an ace counts 1, a 2 to 10 counts its number, and a jack, queen or king counts 10. The page picks the grouping with the least deadwood for you, and the deadwood total is shown above your hand.
After you draw, if the 10 cards you would keep have 10 or less deadwood, you may knock by discarding one card and ending the hand. With no deadwood at all you go gin. The other player then lays off any of their loose cards that extend your melds (not after gin), and the hands are compared:
| Result | Score |
|---|---|
| Knock, and you have less deadwood | You score the difference |
| Gin | You score 25 plus the other player’s deadwood |
| Undercut: the other player has the same or less deadwood | They score the difference plus 25 |
| Only two cards left in the stock after a discard | The hand is a draw and nobody scores |
The first to reach 50 or 100 points wins the match. The dealer swaps each hand. There is no big-gin bonus and no game bonus.
Controls. Tap or click the stock or the discard pile to draw (or press S or D). Tap a card to pick it, then press Discard (or tap the picked card again, or press X). Press K or the Knock button to knock; the button says Go gin when you have no deadwood. Arrow keys move between your cards, H gives a hint, and Escape cancels a pick. When a card is picked, the line under your hand says how much deadwood you would have after throwing it away. Melds are labelled with the words Run and Set as well as a green frame, picked cards are raised and framed in amber, and each suit has its own symbol as well as its own colour, so colour is never the only signal. A hint marks the match as helped, so it does not count as a win. Sound is off until you press the sound button.
| Level | Rule |
|---|---|
| Easy | Takes the discard only if it completes a meld and lowers its deadwood. Throws away its highest loose card. Knocks as soon as it can. |
| Medium | Also takes a discard that brings it into knocking range. Throws away the card that leaves the least deadwood. Waits for 7 or less to knock until the stock is low. |
| Hard | Waits longer early on (3 or less, then 6, then 10 as the stock shrinks). Remembers which discards you picked up and avoids throwing cards near them. Prefers to throw away cards that are least useful to its own hand. |
All three go gin whenever they can. The computers never look at your hand.
For a hand of 10 or 11 cards the engine lists every possible meld: every set of three or four cards of one rank and every run of three or more in one suit. It then tries every choice of melds that share no card and keeps the one with the least deadwood, preferring more cards in melds on a tie. That is exhaustive, so there is no case where a better grouping is missed. The same search drives the grouping on screen, the knock check, the computer’s discards and the scoring.
Lay-offs use the same idea. For the defender’s cards the engine tries every subset that can be laid onto the knocker’s melds, one after another (a card laid off can extend a meld that another laid-off card then extends), and keeps the one that leaves the least deadwood.
| Claim | How it is checked |
|---|---|
| The deadwood search is exact | An independent brute force tries every subset of the hand, tests each subset against the definition of a meld, and asks whether the subset splits into melds. It agrees with the engine on 600 random deals each of 10 and 11 cards, and on 500 hands built from a few ranks and suits so melds are common. |
| Lay-offs are optimal | The brute force tries every subset of the defender’s cards and every assignment of those cards to melds, and agrees with the engine on 90 built positions. |
| Scoring is right | Knock, gin, undercut and equal-deadwood undercut are each checked on hand-built positions with the numbers worked out by hand. |
| The turn rules hold | The just-taken discard cannot be thrown back, knocking needs 10 or less, and a stock of two cards ends the hand as a draw. |
| Hands always end | 600 hands of random legal moves, 60 hands across the level pairings, and whole matches to 50 and 100 at every level. The 52 cards stay accounted for at every step. |
| Hard is the strongest level | Over 150 hands against Easy, with the dealer alternating, Hard scores more points than it loses, and no single computer move takes a second. |
Your matches finished, matches won, hands won and gins are small whole numbers kept in your browser under one key. The page address holds the level, the target and the game number, so a shared link replays the same deals. Nothing is uploaded and there is no account.
Free to play, no ads, nothing uploaded. These games are original and are not affiliated with any other game or brand.