Play Hearts against three computer players: pass cards, follow suit, dodge the hearts and the queen of spades, and try to shoot the moon, with three levels and full keyboard play.
Game #-
Hand 1
Played 0
Won 0
Lowest score -
Moons shot 0
Your hand
This hand 0 Total 0
| Player | Taken | Scored | Total |
|---|
Each heart is 1 point and the queen of spades is 13. The lowest score wins, so try not to take them. Before most hands you pass 3 cards: tap three, then Pass 3 cards. The 2 of clubs leads. Play a card of the suit that was led if you have one; cards you cannot play are crossed out and tapping one tells you why. The highest card of the suit led takes the trick. A heart cannot be led until a heart has been played. If one player takes all 26 points they score 0 and everyone else scores 26. Keyboard: Tab to your cards, the arrow keys, Home and End move between them, Enter or Space plays a card (or picks it to pass). Escape puts back the cards you picked to pass.
A standard 52-card pack is shuffled with a seeded shuffle and dealt 13 cards each. The game number is the seed, so the same number always gives the same deals, and the address of this page carries it. The pass goes left, right, across, then there is a hand with no pass, and round again. The holder of the 2 of clubs leads it. On the first trick nobody may play a heart or the queen of spades unless they hold nothing else. A heart may not be led until one has been played, unless the leader holds only hearts. The queen of spades does not break hearts. Every heart is 1 point and the queen of spades is 13, so every hand holds exactly 26. A player who takes all 26 shoots the moon: they score 0 and the other three score 26 each. The game ends when a score reaches 100 (50 in the short game) and one player has the single lowest score; if the lowest score is shared, another hand is played. Easy plays any legal card. Medium follows the usual habits: it passes the queen of spades and high hearts, ducks under the winning card, throws the queen of spades when it cannot follow, and leads low. Hard also counts the cards already played, remembers who has run out of which suit, and takes a trick with a heart in it to stop another player shooting the moon. The computers never look at your hand.
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.
Hearts is a game of avoiding things. Every heart you take costs 1 point and the queen of spades costs 13, so there are 26 points in every hand and the player with the lowest total at the end wins.
The game is played to 100 points, or 50 in the short game. It ends when someone reaches the limit and one player has the single lowest score. If the lowest score is shared, another hand is played. After each hand a table shows who took what and the new totals.
Seats and colour. You sit at the bottom. Pip sits on your left, Dot across the table and Moss on your right. The four cards of a trick sit side by side under each player’s name, and the winner’s card is outlined. Suits are told apart by their shapes (spade, heart, diamond, club) as well as by colour, and a point card carries a small ring in its corner.
Levels. Easy plays any legal card. Medium follows the usual habits: it passes the queen of spades and high hearts, ducks under the winning card when it can, throws the queen of spades when it cannot follow suit, and leads low cards. Hard does all that and also counts the cards already played, remembers which players have run out of a suit, and takes a trick that contains a point when one player is collecting all the points, to stop a moon. You can change the level at any time and it applies from the next computer move. Changing the game length deals the game again.
Keyboard and screen reader. Press Tab to reach your cards. The arrow keys, Home and End move between them, and Enter or Space plays the card, or chooses it to pass. Escape puts back the cards you chose to pass. Every card played, every trick taken and every score is spoken through a polite status message, and each card button reads its name, whether it can be played and how many points it carries. The sound button is off until you press it, and the sounds are short, quiet tones.
The game has a number. The page address carries it, along with the level and the length, so copying the address, or using Copy result, gives someone else the same deals. Restart this game replays it from the first hand.
A card is a number from 0 to 51: the suit is the number divided by 13, rounded down, and the rank comes from the remainder. Each hand’s shuffle is a Fisher-Yates driven by a small seeded generator, mixed from the game number and the hand number, so the same game number always gives the same deals. The seed itself is drawn from the browser’s secure random source, from 1 to 999,999, and an address can carry any whole number up to 4,294,967,295.
The rules live in a plain TypeScript module with no page code in it. Playing a card returns a new state and a list of events, or nothing when the card is illegal, and the page only draws the result. The computer players see only what a player at the table would see: their own hand, the cards on the table, the tricks already taken, and who has failed to follow which suit.
The tests check these claims:
Nothing is uploaded and there is no account. Games played, games won, your lowest final score and the number of moons you shot are saved in your browser’s local storage as small numbers inside a small JSON object, under one key. Stored values that are not whole numbers within a sensible range are ignored when read. Clearing site data removes them. The only other state is the page address.
Everything runs locally in your browser.
Free to play, no ads, nothing uploaded. These games are original and are not affiliated with any other game or brand.