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

Hearts

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 own

More games