gekro
GitHub LinkedIn

Old Maid

Play Old Maid against one to three computer players: match pairs, pick hidden cards and avoid the odd Star card.

Game #-

Pairs laid 0

Played 0

Safe games 0

Best safe run 0

Your cards

    Cards of the same number make a pair, and pairs are put down for you. On your turn, tap one of the face-down cards to take it. If it matches a card you hold, you put the pair down. When you run out of cards you are safe. The one player left holding the Star card is the one who has it this time, and then you can play again. Keyboard: Tab to the face-down cards, the arrow keys move between them, and Enter or Space takes the card.

    How the game works

    The pack is every card of 6, 9 or all 13 numbers in four suits, plus one Star card that matches nothing. A seeded shuffle deals every card out, so the game number always gives the same deal, and the address of this page carries it. Pairs are cards of the same number; the suit does not matter. Each number has four cards, so it can make two pairs. On your turn you take one hidden card from the next player who still has cards. If it matches a card in your hand, both go down as a pair. Both hands are shuffled after every pick, so no one can follow a card by where it sits. A player with no cards is safe and sits out. When one player is left, they are holding only the Star card and the game ends. The computers pick a hidden card by chance, because they cannot see the cards either.

    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.

    © 2026 Rohit Burani · MIT · Built at gekro.com · View source ↗

    Guide

    How to play

    The aim is to put all your cards down in pairs. One card in the pack, the Star card, has no partner. The player who is left holding it when everyone else has run out of cards is the one who has the star this time. Then you can play again.

    1. Pairs. Two cards with the same number or letter make a pair. The suit does not matter, so a 7 of hearts pairs with a 7 of clubs. At the start every pair in your hand is put down for you, and a number can make two pairs because there are four of each.
    2. Pick a card. On your turn, tap one of the face-down cards in the “Pick a card” box. They belong to the next player who still has cards. The card you pick goes into your hand.
    3. Match it. If the card you picked matches one you hold, the pair is put down at once and shows as a small badge. If it does not, you keep it.
    4. Out of cards. When you have no cards left you are safe, and the others carry on without you. When only one player still has cards, they are holding the Star card and the game is over.

    Your own cards are laid out face up under the table, sorted by number, with the Star card at the end and a gentle glow if you hold it. Each computer player’s cards are shown as backs, with a count and their pairs. The computers choose their card by chance, because they cannot see the cards either.

    Sizes. Quick uses the numbers 1 (Ace) to 6, which gives 25 cards and a short game. Medium uses 1 to 9 for 37 cards, and the Full pack uses all 13 for 53 cards. With two to four players, the cards are shared as evenly as they go.

    Kind wording. Nothing in this game says you got it wrong. The ending line is “You are safe! Pip has the Star card. Great game!” or “You have the Star card this time. Try again!” The Star card is just luck, and both hands are shuffled after every pick, so no one can work out where it is.

    Keyboard and screen reader. Press Tab to reach the face-down cards, use the arrow keys, Home and End to move between them, and press Enter or Space to take the one you are on. Each button reads “Card 3 of 7 from Pip. Take it.” A polite status message says every pick, every pair and every player who is safe, and your own cards are a list with each card named. The sound button is off until you press it, and the sounds are short, quiet tones. Cards are told apart by their numbers and suit shapes as well as by colour.

    The game has a number. The page address carries it, along with the number of players and the size, so copying the address, or using Copy result, gives someone else the same deal. Restart this game replays that deal from the beginning.

    How it works

    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. The Star card is number 52. The shuffle is a Fisher-Yates driven by a small seeded generator, so a game number always gives the same order of cards. 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. Taking a card returns a new state and a list of events, or nothing when the pick is not a whole number inside the hidden hand, and the page only draws the result. After a pick, both the player who drew and the player who was drawn from have their hands shuffled, like turning a fan of cards over, so the position of a card never gives it away.

    Why every game ends: each number has four cards, and every hand holds at most one card of each number, because a second one would pair at once. So the cards of a number that are still in hands are always an even count (four, two or none) spread over different players. When only one player still has cards, they cannot be holding a number, because a lone card of a number would need a partner in another hand. The one card they hold must be the Star card.

    The tests check these claims:

    • The pack has 25, 37 and 53 cards for the three sizes, with four of every number and exactly one Star card.
    • The shuffle is unbiased. A chi-square test over 6,000 shuffles of three items checks that all six orderings come up about equally, and the Star card lands with each seat in proportion to the cards that seat is dealt.
    • The deal gives every player a share that differs by at most one card from the others, lays every pair at once, and never leaves two cards of the same number in a hand.
    • Drawing pairs a matching card, does not pair the Star card, skips players who are out, ends the game when one player is left, and refuses any pick that is not a whole number inside the hidden hand.
    • 1,800 random games, 200 for each player count and size, are played to the end. After every pick the cards are all there, no hand holds two of a number, and the counts add up. Every game ends with exactly two pairs of every number laid and one player holding only the Star card.
    • The computer’s pick is uniform over the hidden cards (chi-square), and it depends only on how many cards are hidden.
    • In 1,500 three-player Quick games each seat ends with the Star card between 20% and 47% of the time.
    • The ending wording is checked for blame words, and there are none.

    Privacy and storage

    Nothing is uploaded and there is no account. Games played, games that ended without you holding the Star card, and your longest run of those 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.

    Limits

    • There is no scoring beyond the Star card, and no time limit.
    • Pairs are put down for you, so there is no choice about which pair to lay.
    • A game in progress is not saved. Reloading with the same address gives you the same deal from the start.

    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.