Skip to main content

Documentation Index

Fetch the complete documentation index at: https://openturn.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Quick lookup for every example shipped in the monorepo. For curated descriptions and tutorial cross-links see Examples. All commands are run from the monorepo root (openturn/). --filter can also be written as -F.

Browser apps (dev)

These run a local Vite dev server via openturn dev.
ExamplePackagePathCommand
Splendor (featured)@openturn/example-splendor-appexamples/games/splendor/appbun --filter @openturn/example-splendor-app dev
Tic-tac-toe (get started)@openturn/example-tic-tac-toe-appexamples/games/tic-tac-toe/appbun --filter @openturn/example-tic-tac-toe-app dev
Battleship@openturn/example-battleship-appexamples/games/battleship/appbun --filter @openturn/example-battleship-app dev
Tic-tac-toe multiplayer@openturn/example-tic-tac-toe-multiplayer-appexamples/hosted-multiplayer/tic-tac-toe-multiplayer/appbun --filter @openturn/example-tic-tac-toe-multiplayer-app dev
Tic-tac-toe with chat@openturn/example-tic-tac-toe-with-chat-appexamples/plugins/tic-tac-toe-with-chat/appbun --filter @openturn/example-tic-tac-toe-with-chat-app dev
Tic-tac-toe replay viewer@openturn/example-tic-tac-toe-replay-viewer-appexamples/replays/tic-tac-toe-replay-viewer/appbun --filter @openturn/example-tic-tac-toe-replay-viewer-app dev
Paper-scissors-rock@openturn/example-paper-scissors-rock-appexamples/simultaneous-moves/paper-scissors-rock/appbun --filter @openturn/example-paper-scissors-rock-app dev
Paper-scissors-rock (raw core)@openturn/example-paper-scissors-rock-core-appexamples/using-core/paper-scissors-rock-core/appbun --filter @openturn/example-paper-scissors-rock-core-app dev
Pass extra flags after --. For example, to pin a port:
bun --filter @openturn/example-tic-tac-toe-app dev -- --port 3001

CLI apps (demo)

Terminal-only examples. They don’t have a dev script — use demo.
ExamplePackagePathCommand
Tic-tac-toe CLI@openturn/example-tic-tac-toe-cliexamples/games/tic-tac-toe/clibun --filter @openturn/example-tic-tac-toe-cli demo
Pig-dice CLI@openturn/example-pig-dice-cliexamples/games/pig-dice/clibun --filter @openturn/example-pig-dice-cli demo
Common flags for the tic-tac-toe CLI:
bun --filter @openturn/example-tic-tac-toe-cli demo -- --save-replay out.json
bun --filter @openturn/example-tic-tac-toe-cli demo -- --bot 1=random
bun --filter @openturn/example-tic-tac-toe-cli demo -- --bot 1=minimax

Library packages (no dev server)

These define games, UIs, or bots that other example packages import. They have no dev or demo script — they’re consumed via workspace dependencies and exercised through the apps and CLIs above. bun --filter <name> typecheck and bun --filter <name> test (where present) still work.
PackagePath
@openturn/example-splendor-gameexamples/games/splendor/game
@openturn/example-splendor-botsexamples/games/splendor/bots
@openturn/example-tic-tac-toe-gameexamples/games/tic-tac-toe/game
@openturn/example-tic-tac-toe-uiexamples/games/tic-tac-toe/ui
@openturn/example-tic-tac-toe-botsexamples/games/tic-tac-toe/bots
@openturn/example-pig-dice-gameexamples/games/pig-dice/game
@openturn/example-battleship-gameexamples/games/battleship/game
@openturn/example-paper-scissors-rock-gameexamples/simultaneous-moves/paper-scissors-rock/game
@openturn/example-tic-tac-toe-with-chat-gameexamples/plugins/tic-tac-toe-with-chat/game
@openturn/example-tic-tac-toe-core-gameexamples/using-core/tic-tac-toe-core/game
@openturn/example-paper-scissors-rock-core-gameexamples/using-core/paper-scissors-rock-core/game
@openturn/example-persistent-wins-core-gameexamples/using-core/persistent-wins-core/game
@openturn/example-persistent-wins-gameexamples/using-profiles/persistent-wins/game
@openturn/example-card-discovery-gameexamples/using-profiles/card-discovery/game