zmm863-commits/dsh-dice-game
🎲 骰子大作战 — DSH网页界面的经典骰子游戏合集:说谎者的骰子、红点、红/蓝、大/小、单/双、顺子。单人挑战AI + PeerJS在线对战。中英双语。
Project Overview项目介绍
This is a native DSH web GUI plugin that bundles six traditional dice games for casual entertainment originating from Jincheng, Shanxi, China. Once installed via the DSH CLI, it adds a "🎲 Dice Battle" entry to the DSH sidebar. Clicking the entry opens a dedicated game panel in DSH's center column, where all games run in an isolated sandbox iframe that cannot access DSH's internal DOM, cookies, or local storage. The games are all pure frontend code, so they load quickly and run smoothly directly within DSH.
Right now, all online multiplayer functionality is temporarily disabled, so every game is limited to single-player mode against an AI opponent. The plugin is designed for casual users who want a quick break from coding or agent work, or anyone interested in exploring traditional Chinese folk game culture. To start playing, you just select the game you want to try from the main menu, follow the on-screen rules, and you can start within seconds. The included games cover a range of styles from bluffing to simple guessing games, so there is something for every taste.
The project is released under the open source MIT license, so you can modify or redistribute it freely per the license terms. There is no real money gambling or any paid content included, all games are for casual entertainment only. To install the plugin, run the command dsh plugin --profile web add dsh-dice-game in your DSH CLI, then restart the DSH web process to activate it. After restarting, the sidebar entry that matches the DSH theming system will appear, and you can start playing right away.
这是一款专为 DeepSeek Harness (DSH) 开发的原生 Web GUI 插件,名为「晋城骰子大作战」,收录了源自中国山西晋城地区的六种传统民间骰子玩法,包括经典的吹牛骰子,还有当地特色的猜红点、猜红蓝等玩法。安装完成后,用户可通过侧边栏的「🎲 骰子大作战」入口打开游戏面板,直接在 DSH 中心列游玩,游戏运行在隔离沙箱 iframe 中,不会访问 DSH 内部数据。
目前该插件仅开放单机游玩模式,联机对战功能已临时禁用,所有游戏均支持单人对抗 AI 对手。它面向所有想要在工作间隙休闲放松、体验中国地方传统民俗游戏文化的用户。打开游戏面板后,你只需点击选择想要体验的玩法,按照内置规则操作即可开始,每款游戏都保留了原本的地方规则和体验,操作简单容易上手。
游戏本体为纯前端实现,依赖 peerjs.min.js 和 qrcode.min.js 两个外部库,未来联机功能恢复后可支持 PeerJS WebRTC 联机对战。本项目采用 MIT 许可开源,可免费使用修改,不包含任何真实货币赌博相关内容。用户可通过 DSH CLI 执行安装命令 dsh plugin --profile web add dsh-dice-game,完成后重启 DSH web 即可使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-dice-game(zmm863-commits/dsh-dice-game)
仓库:https://github.com/zmm863-commits/dsh-dice-game
本站详情页:https://www.yhbd.top/plugins/zmm863-commits-dsh-dice-game/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 2 · 最近提交 2026-09-02 · 主语言 HTML
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-dice-game
把 zmm863-commits/dsh-dice-game 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
🎲 晋城骰子大作战 (Jincheng Dice Battle)
🏮 源自中国山西晋城的地方骰子玩法 — These six dice games are traditional folk games from Jincheng, Shanxi, China (中国山西省晋城市). 晋城骰子大作战收录了晋城地区流行的六种经典骰子玩法,是当地茶余饭后、亲友聚会的传统娱乐。

A collection of classic dice games that runs as a DSH Web GUI plugin. The sidebar entry "🎲 骰子大作战" opens the game panel right in the center column.
经典骰子游戏合集,作为 DSH Web GUI 插件运行。侧边栏「🎲 骰子大作战」入口打开游戏面板,直接在中心列游玩。
📌 当前状态:单机版 — Online multiplayer is temporarily disabled (
MP_DISABLED = true); the game runs fully single-player vs AI. Networking will be restored in a later release. 当前为单机版:联机功能暂缓上线(MP_DISABLED),目前为单人 vs AI 模式;后续版本恢复联机。
Games / 玩法
📜 晋城传统玩法 — All six games are played across Jincheng, Shanxi, China.
- Liar's Dice (吹牛) — the classic bluffing dice game, single-player vs AI · 经典吹牛骰子,单人 vs AI
- Guess Red Dots (猜红点) · 晋城特色:①=1分 ④=4分
- Guess Red/Blue (猜红蓝) · 红蓝点对决
- Guess Big/Small (猜大小) · 大小博弈
- Guess Odd/Even (猜单双) · 单双对决
- Guess Straight (猜顺子) · 顺子挑战
The game is pure frontend HTML (assets/index.html + peerjs.min.js + qrcode.min.js), served by the plugin host via the /dice-game/ route, loaded in a center-column iframe. The iframe is an opaque-origin sandbox (no allow-same-origin): the game document is isolated from the DSH GUI and cannot read its DOM, cookies, localStorage, or same-origin APIs. PeerJS/WebRTC online play still works because signaling goes over the PeerJS cloud (wss), which does not require same-origin access.
游戏为纯前端 HTML(assets/index.html + peerjs.min.js + qrcode.min.js),由插件 host 通过 /dice-game/ 路由托管,在中心列 iframe 中加载。iframe 使用不透明源沙箱(无 allow-same-origin):游戏文档与 DSH GUI 完全隔离,无法读取页面 DOM、Cookie、localStorage 或同源 API。PeerJS/WebRTC 联机仍可正常使用,因为信令走 PeerJS 云端(wss),不依赖同源权限。
About / 关于玩法
晋城骰子文化 (Jincheng Dice Culture):
晋城骰子大作战收录的六种玩法均源自中国山西省晋城地区——这里是太行山南端的古城,民间骰子游戏历史悠久。吹牛、猜红点、猜红蓝、猜大小、猜单双、猜顺子,是晋城百姓聚会、待客时喜闻乐见的传统娱乐。本插件将这些地方玩法数字化,让更多人了解晋城的骰子文化。
The six games in Jincheng Dice Battle all originate from Jincheng, Shanxi Province, China — an ancient city at the southern end of the Taihang Mountains with a long folk tradition of dice games. This plugin digitizes these local games so more people can discover Jincheng's dice culture.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
lamost423/dsh-maze
Andersen216/dsh-whale-girl-live2d
leeclouddragon/dsh-all-in
dhb861832993-star/pbr-render
opensetk/dsh-xiaohei
anneheartrecord/dsh-desk-pet
swaylq/dsh-digipet