Play now: king.arda.tr
King is the Turkish trick-taking card game, played over 20 hands of cezalar (penalties) and koz (trumps). This version puts you at the table against three computer players. It runs in any modern browser, on desktop and phone, in English, Türkçe and 日本語. It also keeps score when you play King with real cards.
- The full game. 20 hands. Each player picks 3 penalty games and 2 trump games, and each penalty can be picked at most twice. The rules are enforced: follow suit, dump penalty cards when void, no leading hearts or trumps before they are broken, and in koz you must beat the highest card or overtrump.
- Three computer players who pick their games from the hand they hold and play to avoid penalties or to win tricks.
- Puan cetveli for real tables. Playing with real cards? Switch to Cetvel (Sheet), enter the four players, and the paper score sheet becomes the main screen. The pick moves round the table, the picker only sees games they may still choose, and every hand must add up (13 tricks, 13 hearts, 8 kings and jacks, 4 queens) before it saves. Tap any hand on the sheet to fix it, and share the final results as text.
- Auto. The button next to your name plays the rest of the current hand for you, including your pick, then switches itself off.
- English, Turkish and Japanese, switchable at any time. Turkish uses table words (El Almaz, Sıra Murat'ta). Japanese gives each game a Japanese name with the Turkish one underneath.
- The King cetveli. A paper-style score sheet shows every hand, ticks off each penalty as it is used, and counts the picks each player has left.
- Made for phones. Tap a card to raise it and tap again to play it. The score sheet is a drawer, and menus slide up from the bottom. Short landscape screens get a compact layout.
- Installable and offline. Add it to your home screen and it plays without a connection. A game in progress is saved in your browser.
- No ads, no purchases, no tracking. The menu has an Also from Gand section linking the studio's other games, and that's all.
| Game | Avoid | Points |
|---|---|---|
| El Almaz | any trick | −50 per trick |
| Kupa Almaz | hearts | −30 per heart |
| Erkek Almaz | kings and jacks | −60 per card |
| Kız Almaz | queens | −100 per queen |
| Rıfkı | the king of hearts | −320 |
| Son İki | the last two tricks | −180 per trick |
| Koz | (take tricks, you name trumps) | +50 per trick |
Penalties add up to −5200 over a game and the trump games to +5200, so the four final scores always sum to zero. King has many house rules. The ones this table uses are on the in-game Rules screen.
There are no dependencies. Node 18 or newer is enough.
npm test # 300 bot games and 300 score-mode tables: legal, zero-sum, quotas met; all translations present
npm run build # write the static site to dist/
npm run serve # build, then serve dist/ on http://localhost:8417
npm run screenshots # retake docs/*.jpg with headless Chrome (needs npm run serve running)
npm run icons # re-render the PNG icons and og.png from the SVGs (needs rsvg-convert)| Path | What it is |
|---|---|
src/game.html |
The whole game: rules engine, bots, translations and UI in one file. It is a page body, so it can also be published as a Claude artifact unchanged. |
public/ |
Copied into the site as is: web manifest, service worker, icons, og.png, robots.txt, .well-known/assetlinks.json, _redirects. |
tools/build.mjs |
Wraps src/game.html in a full HTML document (meta tags, manifest, service worker) and writes dist/. |
tools/selftest.mjs |
The engine and translation checks behind npm test. |
tools/screenshots.mjs |
Drives headless Chrome over the DevTools protocol to take the README images (store for the Play Store set). |
android/ |
The Google Play app: a Trusted Web Activity (tr.gand.king) that opens king.arda.tr in Chrome. android/build.sh builds the signed bundle. |
docs/play-store.md |
Play release steps, store listing texts (TR/EN) and the App content answers. |
The rules live between /*ENGINE-START*/ and /*ENGINE-END*/ in src/game.html, and
the strings between /*I18N-START*/ and /*I18N-END*/. Run npm test after changing
either one. A language missing a string fails the test.
The site is hosted on a Cloudflare Worker with static assets (king-arda-tr, personal
account) at https://king.arda.tr, deployed by hand:
npm run deploy # tools/deploy_cloudflare.shIt exports the committed HEAD (commit first) into a temporary directory, runs the
self-test and the build there, and uploads dist/ with wrangler deploy, using your
local wrangler login (wrangler.jsonc holds the custom domain). The
build check runs the same test and build on every push.
/.well-known/assetlinks.jsonships with it (wrangler uploads dot-directories) and is served asapplication/json; the Play app needs it.public/_redirectsserves/index.htmland/privacy.html(the Play privacy URL) as GitHub Pages did, without a redirect:sw.jscachesindex.htmlat install, and a redirected response cannot answer a navigation offline.- The service worker serves pages network-first, so players get a new deploy on their next visit and the cached copy when they are offline.
- Until 2026-11-25 this was GitHub Pages; GitHub could not renew its certificates behind the Cloudflare proxy, and its sites broke (526).
The Android app opens the live site, so web deploys update it too. See
docs/play-store.md for the build, the first-release steps
(including the Play App Signing fingerprint for assetlinks.json) and the listing.
To host it anywhere else, run npm run build and upload dist/. Serve index.html and
sw.js with Cache-Control: no-cache (Workers static assets send
max-age=0, must-revalidate, which does the same). The service worker needs HTTPS.
Copyright © 2026 Gand. All rights reserved. The source is published for reading only; see LICENSE.