WhiseNT/dsh-blackjack 预览 preview

WhiseNT/dsh-blackjack

DeepSeek-dealt 21 点 (Blackjack) for the DeepSeek Harness. The DeepSeek model plays dealer — it deals, decides, and trash-talks as one of two selectable personas — while every round is event-sourced into the session log, so hands replay and fork identically. One package ships both the host game service and the browser sidebar UI (a dual-face bundle), installed in a single dsh plugin add.

catalog descriptioncatalog 简介 / catalog description:谁不想coding的时候急头白脸的和大肥鱼来一场紧张刺激的21点呢

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a full playable Blackjack game to the DSH web interface. It ships as a single dual-face bundle that includes both the host-side game service and the browser-based UI, so you can install it with just one simple command: dsh plugin --profile <name> add github:WhiseNT/dsh-blackjack. Before running the install command, you need to add this repository to the allowBuilds list in your profile’s pnpm-workspace.yaml to approve the self-contained build. After installation, DSH automatically mounts the host service layer and adds the UI module to the frontend boot graph without any extra manual configuration. All dependencies are published @deepseek-ai/* npm packages, so no unpublished internal code or sibling monorepo checkouts are required.

When you start a new game, the DeepSeek LLM acts as the dealer, and you can pick one of two available dealer personas per session that persists across all game events. The two options are the gluttonous, lazy Big Fat Fish, or the cheeky smug Brat that teases you with unprompted taunts throughout the game. Every game action, from starting a round to hitting, standing, and dealer chatter, is stored as an event in the session log, so you can replay or fork the entire game exactly as it played out. If the LLM call fails or is unavailable, the game gracefully falls back to pre-written lines matched to your selected persona to keep the game moving without interruption.

The game follows standard Blackjack rules, using a deterministic 52-card deck with the random seed stored in the game start event. Aces count as 1 or 11, face cards count as 10, the dealer draws until reaching 17 or higher, and busts result in an immediate loss, while equal totals result in a push. After starting DSH with your updated profile, you will see a Blackjack icon in your sidebar footer that opens the full game UI, which includes the game table, dealer mood badge, lifetime win/loss record, and a quick action bar for gameplay. The UI does not store any game state locally, it communicates exclusively with the host service to keep everything synced.

这是专为DeepSeek Harness开发的原生插件,为DSH添加了21点(Blackjack)游戏功能。插件同时包含后端游戏服务和浏览器端侧边栏UI,只需一条dsh plugin add命令即可完成安装。DeepSeek大模型担任庄家,支持玩家在两个不同性格的庄家角色中选择,每轮游戏都有事件日志记录。

游戏遵循标准21点规则,使用固定种子的52张牌堆,每一步操作都会作为事件存入会话日志,可完整重放对局过程。UI会在DSH浏览器侧边栏添加入口,点击即可打开游戏牌桌,显示庄家状态、对局记录和聊天信息。玩家可以通过快捷操作栏进行操作,还可以配置初始庄家角色和庄家闲聊概率。

安装该插件需要先在配置文件中允许该源构建,依赖均为公开发布的@deepseek-ai/* npm包,不需要拉取内部未发布代码。插件遵循MIT许可协议,用户安装后重启DSH即可开始游戏,无需额外配置。代码包含完整的单元测试和UI测试,开发调试流程清晰规范。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 github:WhiseNT/dsh-blackjack

把 WhiseNT/dsh-blackjack 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-blackjack

DeepSeek-dealt 21 点 (Blackjack) for the DeepSeek Harness. The DeepSeek model plays dealer — it deals, decides, and trash-talks as one of two selectable personas — while every round is event-sourced into the session log, so hands replay and fork identically. One package ships both the host game service and the browser sidebar UI (a dual-face bundle), installed in a single dsh plugin add.

English · 中文

Install status

  • ✅ Complete GitHub install (verified against dsh web): one package = host service + browser UI. The plugin declares both dsh.bundle (the host plugin row) and dsh.client (the web frontend entry); once installed the host layer mounts and the client module system picks the UI up into the frontend boot graph automatically.
  • All dependencies are the published @deepseek-ai/* npm packages (0.1.0-rc.6) — no sibling monorepo checkout, no unpublished internal packages.

Features

Host side

  • Two dealer personas you pick per session (durable through blackjack/persona events):
    • 🐟 大肥鱼 / Big Fat Fish — a gluttonous, lazy deep-sea fish ("咕噜咕噜").
    • 😼 雌小鬼 / Brat — a smug, cheeky brat who calls you "杂鱼".
  • Model-dealt decisions: the dealer decides hit/stand through an auxiliary LLM call, one visible step at a time.
  • Cross-round memory: the dealer's prompts carry the running score and the shared chatter history.
  • Event sourcing: blackjack/game-start|hit|stand|dealer-hit|settle|banter|emotion|persona are durable session events; the fold replays identically.
  • Graceful degrade: with the LLM route absent or failing, the dealer falls back to per-persona preset lines.

Browser UI

  • A 🃏 entry in the sidebar footer opens the 21 table in the right details column.
  • The table, dealer-mood badge, lifetime record, a chatter feed (dealer banter plus a staggered card-flip draw animation), and an emoji quick-bar.
  • Talks to the host through a self-mounted blackjack Remote namespace; the UI holds no game state of its own.

UI preview

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev multimodal-bridge 下一个 Next pack-agent →