Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
add exe
Browse files Browse the repository at this point in the history
  • Loading branch information
byn9826 committed Nov 4, 2017
1 parent 0494261 commit 57873c3
Show file tree
Hide file tree
Showing 6 changed files with 432 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
docs/save/*json
docs/save/*json
warring-states-epic-win32-x64
9 changes: 5 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ AI目前比较简单,基本为判断当前形势给出一个合理固定值外
--
每个回合结束后会自动存档,下次可直接读取存档进行游戏

视图
打包
--
视图比较大,需要拖拽来移动。
Web版可以直接用浏览器缩放功能调整
PC版在Electron套壳文件/main.js中打开缩放功能,不过视图没有浏览器缩放自然
```
npm install electron-packager -g
electron-packager . --overwrite
```

资源
--
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
{"code": 16, "occupy": 0, "army": [], "status": [], "order": null},
{"code": 17, "occupy": 0, "army": [], "status": [], "order": null},
{"code": 18, "occupy": 5, "army": [0], "status": [1], "order": null},
{"code": 19, "occupy": 6, "army": [6, 6], "status": [1, 1], "order": null},
{"code": 19, "occupy": 6, "army": [6], "status": [1], "order": null},
{"code": 20, "occupy": 0, "army": [], "status": [], "order": null},
{"code": 21, "occupy": 1, "army": [1, 8], "status": [1, 1], "order": null},
{"code": 22, "occupy": 0, "army": [], "status": [], "order": null},
Expand Down
4 changes: 2 additions & 2 deletions docs/source/ai/breach.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Vue.mixin({
hate[i] += (relation.length / 3);
}
});
if (state[ally].ally.length >=3 && state[ally].ally.length > most[1]) {
if (state[ally].ally.length >= 3 && state[ally].ally.length > most[1]) {
most[0] = ally;
most[1] = state[ally].occupy.length;
} else if (state[ally].ally.length >=2 && state[ally].ally.length > most[1] && app.$data.player[ally] === 2) {
} else if (state[ally].ally.length >= 2 && state[ally].ally.length > most[1] && app.$data.player[ally] === 2) {
most[0] = ally;
most[1] = state[ally].occupy.length;
}
Expand Down
Loading

0 comments on commit 57873c3

Please sign in to comment.