28A card game we wrote in Racket

Twenty-Eight is a trick-taking card game for four players in two teams. Play it in your browser or on Android, with friends by sharing a table's link, or with bots.

Play at respawnfi.comGet it on Google PlaySource on GitHub

One hand against the bots, from the deal to the result. Sound on.

How a hand goes

  1. The auction

    Everyone gets four cards, then bids how many of the 28 points their team will take. Bids start at 16.

  2. Trump, in secret

    The highest bidder picks a trump suit face down. It stays hidden until someone can't follow suit and asks to see it.

  3. The tricks

    The rest of the cards are dealt and eight tricks are played. Make your bid and your team scores; fall short and it loses points.

Why 28?

Only four ranks carry points. That makes 7 points in each suit, and 28 across the four.

How we built it

The server, in Racket

It deals, runs the auction, keeps the trump secret and scores every trick. The rules live only there; the apps show what it tells them.

The table, on Apsis

The phone apps draw it with Apsis, our own game engine, in C on Vulkan. The Android app is out now on Google Play, as Jack & Nine, and the iPhone app is on its way. In the browser it's Three.js, with the same brush-ink cards.