@nodots/backgammon-cli
v1.0.0
Published
Command-line backgammon client for Nodots Backgammon
Maintainers
Readme
@nodots/backgammon-cli
Terminal client for Nodots Backgammon. Log in, play a game, and drive robot simulations from your shell.
Install
npm install -g @nodots/backgammon-cliThe binary is ndbg:
ndbg --helpAuthentication
ndbg login opens a browser to authenticate via Auth0. Tokens are cached locally.
ndbg login
ndbg logoutPlay a game
Start a human-vs-robot game, then roll and move:
ndbg human-vs-robot
ndbg game-roll
ndbg move <from> <to>
ndbg game-statusDrive a game turn-by-turn against the default robot:
ndbg game-playRobot simulations
ndbg robot-list # show available robot configs
ndbg robot-simulate --count 10 # run one robot on N games
ndbg robot-batch --games 100 # batch simulation
ndbg robot-status <gameId> # inspect a running robot's game
ndbg robot-board <gameId> # render the current boardControl a running simulation:
ndbg robot-pause <gameId>
ndbg robot-stop <gameId>
ndbg robot-speed <gameId> <ms>Robot-vs-robot end-to-end:
ndbg robot-vs-robotRequirements
- Node.js >= 20
- Network access to the Nodots Backgammon API (
https://api.nodots.com)
Ecosystem
| Package | Role |
| --- | --- |
| @nodots/backgammon-types | Discriminated-union type contracts. |
| @nodots/backgammon-core | Game logic. |
| @nodots/backgammon-ai | GNU-backed robot move selection. |
| @nodots/backgammon-api-utils | Request, response, and WebSocket contracts. |
| @nodots/backgammon-cli | Terminal client (this package). |
| @nodots/gnubg-hints | Native GNU Backgammon hints addon. |
Hosted product: backgammon.nodots.com.
License
GPL-3.0. See LICENSE.
