Gin Rummy
Public domain classic
Match your cards into sets and runs, then knock before the computer does.
How to play and win: Play Gin Rummy Online Free Against the Computer
Embed Gin Rummy on your site
Free to embed. Please keep the credit link.
<div style="position:relative;padding-top:75%;max-width:640px"><iframe src="https://aivibecodedgames.com/games/gin-rummy/" title="Gin Rummy (free browser game)" style="position:absolute;inset:0;width:100%;height:100%;border:0" loading="lazy" allow="fullscreen" allowfullscreen></iframe></div> <p><a href="https://aivibecodedgames.com/play/gin-rummy/">Play Gin Rummy free</a> on AI Vibe Coded Games</p>
How it was vibe coded
ToolCodex
Rounds of changes: 1
Built on2026-10-15
The opening prompt
Make Gin Rummy for two players against the computer. 10 cards each; on a turn draw from the stock or take the top discard, then discard one card. Melds are sets of 3 or 4 of the same rank, or runs of 3 or more in one suit (ace is low only). A player may knock when unmatched cards (deadwood) total 10 or less; gin means zero deadwood. After a knock the opponent can lay off cards onto the knocker's melds, and an undercut happens when the knocker's deadwood is not lower. Score the deadwood difference, plus 20 for gin and 10 for an undercut, and play to 100. Show the hand sorted with the best meld grouping and the deadwood total highlighted. The computer should take discards that complete melds, discard high unmatched cards, and knock when sensible. Add a hint button.
What we learned
- Built in one pass, then checked with scripted tests for scoring, restarts and screen sizes.
Game controls
- Tap the stock or the discard pile to draw
- Tap a card, then Discard
- Knock when your leftover cards total 10 or less
The game brief includes touch controls for phones.
Open the game on its ownMore games
PLAY
Klondike Solitaire
The solitaire everyone knows. Build four piles from ace to king.
PLAY
FreeCell
Almost every deal can be won. Plan your moves before you make them.
PLAY
Spider Solitaire
Build full runs from king to ace and clear the table.
PLAY
Hearts
Dodge the hearts and the queen of spades. Or shoot the moon.