Quick Start¶
Play a game¶
With Node.js 18 or newer and Git, clone the repository and deal a hand of Blackjack:
git clone https://git.carpocratian.org/sibyl/hypertoken.git
cd hypertoken
npm install
npm run build
npm run blackjack
Follow the terminal prompts to play. For other terminal examples, run these from the repository root:
npm run blackjack
npm run cuttle
npm run poker
For browser play, follow the Blackjack or Cuttle instructions.
Let an LLM play¶
npm run --silent mcp
This is a stdio server, not an interactive game prompt. Have your MCP client launch it as described in the MCP guide, then ask the model to start a hand of Blackjack or a game of Cuttle.
Run a training environment¶
For local Python training or evaluation, start the WebSocket bridge from the checkout:
npm run bridge -- --env hanabi --players 3
The Python bridge guide shows how to connect to the default loopback address (ws://127.0.0.1:9999) and step through legal actions. If your policy runs in TypeScript, use an environment directly; there is no need to start the bridge.
Build a game¶
- Model the pieces with tokens, the decks or piles with stacks, and the board with spaces.
- Define the actions and rules that control legal moves. The custom game recipe shows a minimal turn action.
- Add a terminal or browser interface. To let an AI play, add an adapter that exposes an observation and available moves rather than the entire game state.
Run npm run test:quick for the core and engine checks, or npm run test:unit to include exporters. If you want to set up multiplayer, start with deployment modes to choose between peer sync and an authoritative server.