Hearts
Public domain classic
Dodge the hearts and the queen of spades. Or shoot the moon.
How to play and win: Play Hearts Online Free Against the Computer
Embed Hearts 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/hearts/" title="Hearts (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/hearts/">Play Hearts 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 Hearts for four players: you against three computer players. 13 cards each. Pass three cards to the left on hand 1, to the right on hand 2, across on hand 3, and no pass on hand 4, then repeat. The player with the two of clubs leads. You must follow suit; no hearts or queen of spades on the first trick; hearts cannot be led until broken. Each heart scores 1 point and the queen of spades 13; shooting the moon gives 26 points to the three others. The game ends when someone reaches 100, lowest score wins. Computers should pass high spades and high hearts, avoid taking points, dump the queen of spades on others, duck with low cards, and occasionally try to shoot the moon. Show the trick area, a scoreboard, highlight the legal cards, and offer a hint and a speed setting.
What we learned
- Built in one pass, then checked with scripted tests for scoring, restarts and screen sizes.
Game controls
- Tap a card to pass it, then tap Pass
- Tap a card to play it (legal cards glow)
- Hint shows a safe card
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
Spades
Bid your tricks, keep your partner alive and beat the bags.