fuyu-jie/dsh-go-plugin

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness that adds a 19x19 Go game board to the DSH web interface. It lets you play Go against a simple heuristic AI that prioritizes making captures and avoiding suicide. All core Go rules are implemented, including move validation, captures, ko rule enforcement, and suicide prevention. You play as black (the first player) and the AI controls white stones.

To install the plugin, you can use the DSH command line tool. For local development, you can link directly to your local plugin folder so changes to code take effect immediately after restarting DSH. For production use, you can install the published package directly from npm or from the GitHub source. After installation, restart DSH, open the web interface, and you will see the Go board in the bottom right corner.

All core components include standalone command line tests with zero external dependencies. You can run tests for the rule engine and AI strategy separately after cloning the repository to verify core functionality. The project is released under the permissive MIT open source license, and it is currently under active development. Planned future features include end-game scoring, more advanced multi-step search AI, and optional integration with stronger external Go engines like KataGo.

这是一个专为 DeepSeek Harness 开发的原生网页插件,可在 DSH 网页界面中与启发式 AI 进行 19×19 围棋对弈。用户执黑先手,AI 执白后手,点击棋盘即可落子,AI 会自动回应一手。插件实现了完整的基础围棋规则,支持提子、打劫、禁止自杀,还提供悔棋、重新开局功能。

安装后打开 DSH 网页界面即可在右下角看到围棋棋盘,当提示「你(黑)落子」时点击任意交叉点就能放置黑子,AI 会立即回应。玩家可以随时点击悔棋退回上一步,或者点击重新开始开启新对局,界面还会实时显示黑白双方各自提子的数量,星位标记也方便快速定位棋盘位置。

插件可通过 DSH 命令行工具安装,支持从 npm 官方源、GitHub 源安装,也支持开发阶段本地链接方式安装,修改代码即可实时生效。所有核心逻辑都带有零依赖的命令行测试用例,项目采用 MIT 开源许可,目前还在迭代中,暂未支持终局数子判断和更高级的 AI 策略。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
  • No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
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 @fuyu-jie/dsh-go-plugin

把 fuyu-jie/dsh-go-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH 围棋对弈插件(Go-bloc 围棋)

在 DeepSeek Harness 网页界面里,与一个简单的 AI 一起下一盘 19×19 围棋。

你是黑棋(先手),AI 执白。点棋盘落子,AI 自动回一手。支持吃子、打劫、悔棋、重新开始。


✨ 功能特性

  • 完整基础规则:落子合法性、吃子(提子)、打劫(ko)、自杀禁止(自填眼位)
  • 防守型启发式 AI:会优先提子、会自救逃跑、不主动自杀
  • 实时提子计数:显示黑/白各自提掉对方多少子
  • 悔棋:退回上一手(AI 刚下完时连退到你落子前)
  • 重新开始:一键开局新的一局
  • 星位标记:天元 + 四角星 + 边星,一眼定位

🚀 安装方法(在 DSH 中使用)

go-plugin/ 是一个 DeepSeek Harness web 插件,作为 bundle 挂载到你的 web profile。

方式一:开发中(本机,改代码即生效)

如果你在本机开发这个插件,用 link: 方式直接链接到它的文件夹:

# 1) 把插件装进 web profile(link 方式,指向本机 go-plugin 文件夹)
dsh plugin --profile web add link:D:\dsh-second-wp\go-plugin

# 2) 重启 DSH,浏览器打开 web 界面,右下角出现"围棋对弈 🀄"棋盘

link: 适合开发期:改代码即生效;但 D:\dsh-second-wp\go-plugin 是本机私有路径,只有你这台电脑能用。

方式二:正式安装(已发布到 npm,推荐其它用户使用)

插件已发布到 npm,直接用包名安装:

# 从 npm 官方仓库安装(最标准)
dsh plugin --profile web add @fuyu-jie/dsh-go-plugin

也可以从 GitHub 源安装:

dsh plugin --profile web add github:fuyu-jie/dsh-go-plugin

想用在别的 profile,把 --profile web 换成对应 profile 名即可。

🎮 怎么玩

  1. 打开 DSH 网页界面,看右下角棋盘
  2. 棋盘下方显示「你(黑)落子」时,点击任意格子落黑子
  3. AI(白)会自动回应你的每一手
  4. 用「悔棋」「重新开始」掌控对局
  5. 「黑提 / 白提」实时告诉你双方吃了多少子

📁 目录结构

dsh-second-wp/
├─ go-plugin/                 ← 围棋插件本体(npm 包)
│  ├─ index.mjs               ← 宿主端 half(当前为空骨架)
│  ├─ client.js               ← 浏览器端 half(棋盘 UI + 内联规则/AI)
│  ├─ src/
│  │  ├─ goban.js             ← 规则引擎(棋盘/落子/吃子/打劫;纯逻辑)
│  │  └─ ai.js                ← AI 策略(启发式)
│  ├─ test-goban.mjs          ← 规则引擎命令行测试
│  ├─ test-ai.mjs             ← AI 命令行测试
│  ├─ package.json            ← 插件包声明(dsh bundle/client)
│  └─ cordis.patch.yml        ← 挂载补丁(插入 go-plugin 行)
├─ README.md                  ← 本文件(项目主页)
└─ LICENSE                    ← MIT 开源许可

🧪 测试

规则引擎与 AI 都带命令行测试,零依赖:

cd go-plugin
node test-goban.mjs   # 规则引擎:落子/吃子/打劫/自杀/悔棋 (26 项)
node test-ai.mjs      # AI:合法着法/提子/自救 (7 项)

🛣️ Roadmap

  • 可交互棋盘 + 简单 AI 对弈
  • 吃子、打劫、自杀禁止
  • 提子计数、悔棋、重新开始
  • 判断输赢(终局数子 / 目数)
  • 更智能的 AI(搜索多步、围地做眼)
  • 联网围棋 API / 更强引擎(如 KataGo)

📜 开源许可

LICENSE — MIT

← 上一个 Prev skk-gal-dsh 下一个 Next dsh-tool-hashline →