@wsl233/dsh-gomoku 0.3.0 → 0.3.2
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 +11 -0
- package/client.js +11 -5
- package/cordis.patch.yml +1 -1
- package/package.json +3 -2
- package/preview.html +1 -1
- package/ui/gomoku-ui.js +1 -1
- package/ui/lan.html +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,17 @@ DeepSeek Harness(DSH)的五子棋插件。左侧栏增加「五子棋」入
|
|
|
4
4
|
|
|
5
5
|
> **当前状态:阶段 6(功能完整)。** 已安装到 DSH 插件管理器,支持本地双人、「大肥鱼」算法对战(简单 / 中等 / 困难)、局域网双人对战、DSH 模型服务驱动的 DeepSeek 对战,以及提示、复盘、保存 / 导入、撤销和新局。本目录是独立插件,不依赖也不修改网页版项目 `../`。
|
|
6
6
|
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
已发布到 npm:`@wsl233/dsh-gomoku`。
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g @wsl233/dsh-gomoku
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
DSH 插件管理器也可以直接安装该包;本机开发时使用
|
|
16
|
+
`plugin_manager install_bundle target="file:C:/Users/rache/Desktop/DENNIS/wuziqi/dsh-gomoku"`。
|
|
17
|
+
|
|
7
18
|
## 预览
|
|
8
19
|
|
|
9
20
|
不需要安装 DSH,也不需要构建工具,直接用浏览器打开:
|
package/client.js
CHANGED
|
@@ -11,8 +11,13 @@
|
|
|
11
11
|
* Phase 1: no game logic, no network, no AI. The panel is a visual preview.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Guard against the client bundle being evaluated twice in one renderer.
|
|
15
|
+
// DSH may load a profile bundle both from the entry list and from the
|
|
16
|
+
// package client scan; registering the same factory twice aborts web boot.
|
|
17
|
+
if (!window.__dshGomokuClientLoaded) {
|
|
18
|
+
window.__dshGomokuClientLoaded = true;
|
|
19
|
+
window.__ModuleLoader__.load({
|
|
20
|
+
id: '@wsl233/dsh-gomoku',
|
|
16
21
|
factory(require) {
|
|
17
22
|
'use strict';
|
|
18
23
|
|
|
@@ -22,7 +27,7 @@ window.__ModuleLoader__.load({
|
|
|
22
27
|
const PANEL_ID = 'gomoku';
|
|
23
28
|
const UI_BASE = '/dsh-gomoku';
|
|
24
29
|
const STYLE_ID = 'dsh-gomoku-style';
|
|
25
|
-
const UI_VERSION = '0.2.0-
|
|
30
|
+
const UI_VERSION = '0.2.0-26';
|
|
26
31
|
const withVersion = (src) => src + '?v=' + UI_VERSION;
|
|
27
32
|
|
|
28
33
|
let scriptPromise = null;
|
|
@@ -207,6 +212,7 @@ window.__ModuleLoader__.load({
|
|
|
207
212
|
}
|
|
208
213
|
}
|
|
209
214
|
|
|
210
|
-
return { inject: ['slots'], apply, name: 'dsh-gomoku' };
|
|
215
|
+
return { inject: ['slots'], apply, name: '@wsl233/dsh-gomoku' };
|
|
211
216
|
},
|
|
212
|
-
});
|
|
217
|
+
});
|
|
218
|
+
}
|
package/cordis.patch.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wsl233/dsh-gomoku",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "DSH
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "DSH 浜斿瓙妫嬫彃浠讹細澶ц偉楸肩畻娉?/ DeepSeek / 灞€鍩熺綉 / 鏈湴鍙屼汉瀵规垬",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"exports": {
|
|
@@ -39,3 +39,4 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT"
|
|
41
41
|
}
|
|
42
|
+
|
package/preview.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<script src="ui/engine/board.js"></script>
|
|
27
27
|
<script src="ui/engine/evaluate.js"></script>
|
|
28
28
|
<script src="ui/engine/ai.js"></script>
|
|
29
|
-
<script src="ui/gomoku-ui.js?v=0.2.0-
|
|
29
|
+
<script src="ui/gomoku-ui.js?v=0.2.0-26"></script>
|
|
30
30
|
<script>
|
|
31
31
|
(function () {
|
|
32
32
|
var params = new URLSearchParams(window.location.search);
|
package/ui/gomoku-ui.js
CHANGED
package/ui/lan.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<meta name="color-scheme" content="light">
|
|
7
7
|
<title>五子棋 · 局域网加入</title>
|
|
8
|
-
<link rel="stylesheet" href="/ui/gomoku.css?v=0.2.0-
|
|
8
|
+
<link rel="stylesheet" href="/ui/gomoku.css?v=0.2.0-26">
|
|
9
9
|
<style>
|
|
10
10
|
html, body { margin: 0; min-height: 100%; background: #ffffff; }
|
|
11
11
|
body { min-height: 100vh; }
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<script src="/ui/engine/board.js"></script>
|
|
28
28
|
<script src="/ui/engine/evaluate.js"></script>
|
|
29
29
|
<script src="/ui/engine/ai.js"></script>
|
|
30
|
-
<script src="/ui/gomoku-ui.js?v=0.2.0-
|
|
30
|
+
<script src="/ui/gomoku-ui.js?v=0.2.0-26"></script>
|
|
31
31
|
<script>
|
|
32
32
|
(function () {
|
|
33
33
|
var params = new URLSearchParams(window.location.search);
|