dsh-game
「德州扑克 + 麻将」DSH 插件:侧栏「更多」菜单两行入口 + 双 tab 主面板内嵌本地 FastAPI 训练器(/game 反代到 127.0.0.1:8817,仅 DSH 登录用户可访问)。
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:frankfurtlin/dsh-gameドキュメント
README 全文を読む ↗Usage
- Open More in the DSH sidebar and pick 德州扑克 or 麻将. The panel opens on the matching tab.
- Poker: 开始牌局 deals a heads-up hand. Your cards are face up, the action buttons are below, and the right column shows hand strength, equity, pot odds, call EV, a recommendation and the hand history.
- Mahjong: 开始牌局, choose the missing suit (定缺), then draw and discard. Fourteen tiles means it is your turn to discard; the recommended tile is marked.
- The toolbar has 返回对话, 刷新 and 新窗口打开. Switching tabs points the iframe at the other game; the backend keeps both games alive.
Configuration
| Where | Key | Meaning |
|---|---|---|
| Host environment | DSH_GAME_UPSTREAM_PORT | Upstream port the proxy forwards to. Default 8817. |
lib/index.js | UPSTREAM_TIMEOUT_MS | Upstream timeout in milliseconds. Default 10000; a code constant, not an environment variable. |
| Verification only | DSH_GAME_VERIFY_PORT | Port the app suite starts its own backend on. Default 8917. |
| Verification only | DSH_GAME_PROXY_TEST_PORT | Port the host suite's temporary proxy listens on. Default 8898. |
The backend itself reads no configuration: no database path, no storage, no model keys. Its only state is in process memory.