frankfurtlin/dsh-game ↗★ 0

dsh-game

「德州扑克 + 麻将」DSH 插件:侧栏「更多」菜单两行入口 + 双 tab 主面板内嵌本地 FastAPI 训练器(/game 反代到 127.0.0.1:8817,仅 DSH 登录用户可访问)。

Package
dsh-game
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Nov 23, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:frankfurtlin/dsh-game

Usage

  1. Open More in the DSH sidebar and pick 德州扑克 or 麻将. The panel opens on the matching tab.
  2. 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.
  3. Mahjong: 开始牌局, choose the missing suit (定缺), then draw and discard. Fourteen tiles means it is your turn to discard; the recommended tile is marked.
  4. The toolbar has 返回对话, 刷新 and 新窗口打开. Switching tabs points the iframe at the other game; the backend keeps both games alive.

Configuration

WhereKeyMeaning
Host environmentDSH_GAME_UPSTREAM_PORTUpstream port the proxy forwards to. Default 8817.
lib/index.jsUPSTREAM_TIMEOUT_MSUpstream timeout in milliseconds. Default 10000; a code constant, not an environment variable.
Verification onlyDSH_GAME_VERIFY_PORTPort the app suite starts its own backend on. Default 8917.
Verification onlyDSH_GAME_PROXY_TEST_PORTPort 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.