@zhuweiyou/dsh-holdem 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,14 +14,27 @@ DeepSeek Harness 的德州扑克面板插件:6 人无限注德州,超员自
14
14
 
15
15
  ## 安装
16
16
 
17
+ ### Desktop 版
18
+
19
+ 在 DSH 桌面端的插件安装入口里**直接填写插件名称** `@zhuweiyou/dsh-holdem` 即可。
20
+
21
+ ### Web 版
22
+
17
23
  ```sh
18
- dsh plugin --profile desktop add @zhuweiyou/dsh-holdem
24
+ dsh plugin --profile web add @zhuweiyou/dsh-holdem
19
25
  ```
20
26
 
21
- 装完刷新页面,「德州扑克」图标会出现在侧栏面板栏里。
27
+ 包内已包含编译产物(`lib/`),装完即用,不需要再构建。升级同样是再执行一次 `add`。
28
+
29
+ 两版装完都刷新页面,「德州扑克」图标会出现在侧栏面板栏里。
30
+
31
+ ## 界面
22
32
 
23
- > 公网模式需要本机有 `wrangler`(插件已作为依赖带上,无需全局安装);第一次授权会打开浏览器,
24
- > 也可以复制面板里给出的授权链接手动打开。
33
+ ![大厅](docs/screenshots/lobby.png)
34
+
35
+ ![牌桌](docs/screenshots/table.png)
36
+
37
+ ![本场结算](docs/screenshots/settlement.png)
25
38
 
26
39
  ## 怎么玩
27
40
 
@@ -48,6 +61,7 @@ dsh plugin --profile desktop add @zhuweiyou/dsh-holdem
48
61
  | `turnTimeoutSec` | 每个行动的时限(15–90 秒) | 30 |
49
62
  | `autoAdvanceSec` | 一手结束后自动开下一手(2–30 秒) | 6 |
50
63
  | `allowSpectators` | 是否允许观战 | 开 |
64
+ | `maxSpectators` | 每桌观战席位上限(0–64,`0` 等于不接观战) | 16 |
51
65
  | `chatEnabled` | 是否允许桌边聊天 | 开 |
52
66
  | `maxRooms` | 同时存在的房间上限 | 8 |
53
67
  | `hostIdleDissolveMin` | 房主失联多久后自动结算(分钟) | 10 |
@@ -67,19 +81,4 @@ dsh plugin --profile desktop add @zhuweiyou/dsh-holdem
67
81
  - 房主进程天然可信(能改自己的代码),不承诺防作弊。
68
82
  - 牌桌状态在内存里:重启 dsh(本机模式)或 Durable Object 被回收(Cloudflare 模式)后房间消失。
69
83
  - 筹码是娱乐分,没有真实价值,也没有跨房间钱包。
70
- - 观战人数上限 16;房间上限见设置。
71
-
72
- ## 界面
73
-
74
- ![大厅](docs/screenshots/lobby.png)
75
-
76
- ![牌桌](docs/screenshots/table.png)
77
-
78
- ![本场结算](docs/screenshots/settlement.png)
79
-
80
- ## 许可证
81
-
82
- MIT。规则引擎与联机骨架分别参考了
83
- [BubblePtr/dsh-holdem](https://github.com/BubblePtr/dsh-holdem) 和
84
- [lifefloating/dsh-doudizhu](https://github.com/lifefloating/dsh-doudizhu)(均为 MIT),
85
- 详见 `LICENSE`。
84
+ - 观战席位默认 16,可用 `maxSpectators` 调整;房间上限见设置。