openturn/). --filter can also be written as -F.
Browser apps (dev)
These run a local Vite dev server via openturn dev.
| Example | Package | Path | Command |
|---|---|---|---|
| Splendor (featured) | @openturn/example-splendor-app | examples/games/splendor/app | bun --filter @openturn/example-splendor-app dev |
| Tic-tac-toe (get started) | @openturn/example-tic-tac-toe-app | examples/games/tic-tac-toe/app | bun --filter @openturn/example-tic-tac-toe-app dev |
| Battleship | @openturn/example-battleship-app | examples/games/battleship/app | bun --filter @openturn/example-battleship-app dev |
| Tic-tac-toe multiplayer | @openturn/example-tic-tac-toe-multiplayer-app | examples/hosted-multiplayer/tic-tac-toe-multiplayer/app | bun --filter @openturn/example-tic-tac-toe-multiplayer-app dev |
| Tic-tac-toe with chat | @openturn/example-tic-tac-toe-with-chat-app | examples/plugins/tic-tac-toe-with-chat/app | bun --filter @openturn/example-tic-tac-toe-with-chat-app dev |
| Tic-tac-toe replay viewer | @openturn/example-tic-tac-toe-replay-viewer-app | examples/replays/tic-tac-toe-replay-viewer/app | bun --filter @openturn/example-tic-tac-toe-replay-viewer-app dev |
| Paper-scissors-rock | @openturn/example-paper-scissors-rock-app | examples/simultaneous-moves/paper-scissors-rock/app | bun --filter @openturn/example-paper-scissors-rock-app dev |
| Paper-scissors-rock (raw core) | @openturn/example-paper-scissors-rock-core-app | examples/using-core/paper-scissors-rock-core/app | bun --filter @openturn/example-paper-scissors-rock-core-app dev |
--. For example, to pin a port:
CLI apps (demo)
Terminal-only examples. They don’t have a dev script — use demo.
| Example | Package | Path | Command |
|---|---|---|---|
| Tic-tac-toe CLI | @openturn/example-tic-tac-toe-cli | examples/games/tic-tac-toe/cli | bun --filter @openturn/example-tic-tac-toe-cli demo |
| Pig-dice CLI | @openturn/example-pig-dice-cli | examples/games/pig-dice/cli | bun --filter @openturn/example-pig-dice-cli demo |
Library packages (no dev server)
These define games, UIs, or bots that other example packages import. They have nodev 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.
| Package | Path |
|---|---|
@openturn/example-splendor-game | examples/games/splendor/game |
@openturn/example-splendor-bots | examples/games/splendor/bots |
@openturn/example-tic-tac-toe-game | examples/games/tic-tac-toe/game |
@openturn/example-tic-tac-toe-ui | examples/games/tic-tac-toe/ui |
@openturn/example-tic-tac-toe-bots | examples/games/tic-tac-toe/bots |
@openturn/example-pig-dice-game | examples/games/pig-dice/game |
@openturn/example-battleship-game | examples/games/battleship/game |
@openturn/example-paper-scissors-rock-game | examples/simultaneous-moves/paper-scissors-rock/game |
@openturn/example-tic-tac-toe-with-chat-game | examples/plugins/tic-tac-toe-with-chat/game |
@openturn/example-tic-tac-toe-core-game | examples/using-core/tic-tac-toe-core/game |
@openturn/example-paper-scissors-rock-core-game | examples/using-core/paper-scissors-rock-core/game |
@openturn/example-persistent-wins-core-game | examples/using-core/persistent-wins-core/game |
@openturn/example-persistent-wins-game | examples/using-profiles/persistent-wins/game |
@openturn/example-card-discovery-game | examples/using-profiles/card-discovery/game |