Games · TypeScript · Card game

Kent!

A card game I grew up playing. Collect four of a kind, then secretly signal your partner with a hand gesture before the other team catches you. It only ever worked with everyone around one table, so I rebuilt it for the browser. Right now it's you and a bot partner against bot teams. Still in progress: I'm tuning the rules, the bots and the design.

TypeScript React 19 Vite Tailwind CSS Zustand Vitest

The real game, built from the same code as the standalone version. Pick 4, 6 or 8 players and how hard the bots are, then press play. Sound is on by default, the speaker button in the corner mutes it.

Open the game in its own tab

Teams of two, partners sitting across from each other. You're at the bottom of the table and your partner is the bot opposite you.

♠
The goal
Get four cards of the same rank in your 4-card hand. Four kings, four 7s, anything.
⇄
Swapping
Four cards lie face up in the middle. There are no turns: tap a card in your hand, then a middle card, to trade. Whoever swaps first gets it. When nobody wants to swap any more, four new cards are dealt.
✌️
Signals
Before each hand your team secretly picks one of four gestures as its real signal. Anyone can tap any gesture at any time and everyone sees it. Only your partner knows which one is real, the other three are bluffs.
📣
KENT and COUNTER KENT
Call KENT when you think your partner has four of a kind. Call COUNTER KENT when you think an opponent is signalling right now. It only counts if they really have four of a kind and tapped their real signal in the last 3 seconds. A wrong call costs your own team.
K
Letters
Each lost hand gives your team the next letter of K-E-N-T. The first team to spell the whole word loses. If the deck runs out before anyone calls, the hand is a draw and gets redealt.
🤖
Bots
Easy, Medium or Hard. Bots swap toward four of a kind, signal their partner, call KENT on a real signal and COUNTER KENT when an opponent keeps tapping the same gesture. They bluff too, so don't spam your real one.

All the rules live in a small engine with no UI, so they can be tested on their own. The React app only reads from it and draws the table. These are the rule files.

Why I made it

A game from my childhood.

We played Kent around a table with friends and family, trying to sneak a signal to a partner while everyone stared at our hands. It was one of the most fun games we had, but only if you were all in the same room.

Rules first, screen second.

The rules are plain TypeScript with 81 tests, separate from the React app. That makes it easy to change a rule without breaking the table, and the same engine can run an online version later.

Next: playing with friends.

Right now it's you against bots while I get the game itself right. Online play, so friends can join from their own devices, is the next step.