@wsl233/dsh-gomoku 0.3.10 → 0.4.6
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 +21 -10
- package/analysis.js +441 -0
- package/client.js +464 -6
- package/index.js +62 -1
- package/package.json +7 -9
- package/ui/engine/ai.js +159 -28
- package/ui/engine/evaluate.js +61 -12
- package/ui/gomoku-ui.js +375 -59
- package/ui/gomoku.css +1340 -1
- package/ui/lan.html +2 -2
- package/assets/dsniang.png +0 -0
- package/docs/ui-desktop.png +0 -0
- package/docs/ui-idle.png +0 -0
- package/docs/ui-lan.png +0 -0
- package/docs/ui-menu.png +0 -0
- package/docs/ui-narrow.png +0 -0
- package/preview.html +0 -44
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-51">
|
|
9
9
|
<style>
|
|
10
10
|
html, body { margin: 0; min-height: 100%; background: #ffffff; }
|
|
11
11
|
body { min-height: 100vh; }
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<script src="/ui/engine/board.js"></script>
|
|
83
83
|
<script src="/ui/engine/evaluate.js"></script>
|
|
84
84
|
<script src="/ui/engine/ai.js"></script>
|
|
85
|
-
<script src="/ui/gomoku-ui.js?v=0.2.0-
|
|
85
|
+
<script src="/ui/gomoku-ui.js?v=0.2.0-51"></script>
|
|
86
86
|
<script>
|
|
87
87
|
(function () {
|
|
88
88
|
var params = new URLSearchParams(window.location.search);
|
package/assets/dsniang.png
DELETED
|
Binary file
|
package/docs/ui-desktop.png
DELETED
|
Binary file
|
package/docs/ui-idle.png
DELETED
|
Binary file
|
package/docs/ui-lan.png
DELETED
|
Binary file
|
package/docs/ui-menu.png
DELETED
|
Binary file
|
package/docs/ui-narrow.png
DELETED
|
Binary file
|
package/preview.html
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<meta name="color-scheme" content="light">
|
|
7
|
-
<title>dsh-gomoku · UI 预览</title>
|
|
8
|
-
<link rel="stylesheet" href="ui/gomoku.css">
|
|
9
|
-
<style>
|
|
10
|
-
html, body {
|
|
11
|
-
margin: 0;
|
|
12
|
-
min-height: 100%;
|
|
13
|
-
background: #ffffff;
|
|
14
|
-
}
|
|
15
|
-
body {
|
|
16
|
-
min-height: 100vh;
|
|
17
|
-
}
|
|
18
|
-
#app {
|
|
19
|
-
min-height: 100vh;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
22
|
-
</head>
|
|
23
|
-
<body>
|
|
24
|
-
<div id="app"></div>
|
|
25
|
-
|
|
26
|
-
<script src="ui/engine/board.js"></script>
|
|
27
|
-
<script src="ui/engine/evaluate.js"></script>
|
|
28
|
-
<script src="ui/engine/ai.js"></script>
|
|
29
|
-
<script src="ui/gomoku-ui.js?v=0.2.0-32"></script>
|
|
30
|
-
<script>
|
|
31
|
-
(function () {
|
|
32
|
-
var params = new URLSearchParams(window.location.search);
|
|
33
|
-
var demo = params.get('demo') !== '0';
|
|
34
|
-
var menu = params.get('menu') === '1';
|
|
35
|
-
window.DshGomokuUI.mount(document.getElementById('app'), {
|
|
36
|
-
demo: demo,
|
|
37
|
-
preview: true,
|
|
38
|
-
menu: menu,
|
|
39
|
-
assetBase: 'assets/'
|
|
40
|
-
});
|
|
41
|
-
})();
|
|
42
|
-
</script>
|
|
43
|
-
</body>
|
|
44
|
-
</html>
|