Skip to main content
Every example lives under examples/<purpose>/<name> in the monorepo. Most have a game worker package (the authored game) and either an app browser package (React UI), a cli Bun package (terminal), or both.
Looking up a specific package name, path, or bun --filter command? See the Examples index — every shipped package with its path and run command in one table.
Splendor is the flagship end-to-end example — a Splendor-faithful 2–4 player tabletop with hosted multiplayer, hidden per-player state, three difficulty-tiered AI bots, a polished React 19 + Tailwind v4 + framer-motion table, and a deploy-ready app/ package. Use it to see what a fully realized openturn game looks like and as the canonical thing to play and stress-test against.
What it demonstrates:
  • Hidden information — opponents’ reserved cards stay on the worker; views.player projects them down to a count.
  • Variable seatingMatchInput.minPlayers lets 2, 3, or 4 players seat through <Lobby>.
  • End-of-round triggers — first to 15 points flips a flag; the round completes before the winner is declared.
  • Bots in the lobby — per-seat dropdown picks Random, Greedy, or Strategic from the bots/ package.
  • Cloud deploybun run deploy from the app dir builds the bundle, uploads the multiplayer Worker, and prints the openturn-cloud play URL.

Get started: Tic-tac-toe

Tic-tac-toe is the smallest end-to-end gamekit example and the one every tutorial walks through. Start here when learning openturn — it’s reused across the React UI, CLI, multiplayer, replay viewer, chat-plugin, and bot examples, so the same game/ package shows up in every recipe.
Walk it end-to-end in the Tic-tac-toe with gamekit tutorial.

End-to-end games

Complete, runnable games under examples/games/.

Authoring with raw @openturn/core

Under examples/using-core/ — same games as their gamekit counterparts, written without gamekit.

Persistent player profiles

Under examples/using-profiles/ — hydrate → play → commit → apply.

By concept

Each example is the canonical demo for one openturn concept.

Run them

From the monorepo root. For the complete list of packages and commands (including library packages with no dev script), see the Examples index.

By tutorial

By how-to