From 1e9f5771425ff2ce9095d356af77e9085693490d Mon Sep 17 00:00:00 2001 From: u014301111 Date: Fri, 28 Jul 2023 03:57:00 +0800 Subject: [PATCH] Fri Jul 28 03:57:00 CST 2023 inscode --- package.json | 2 +- src/App.vue | 2 +- src/utils/index.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7e526f2..2536838 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuejs-with-vite", - "version": "0.4.0", + "version": "0.4.1", "scripts": { "dev": "vite", "build": "vite build", diff --git a/src/App.vue b/src/App.vue index 527b4d1..7488979 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,7 @@ import { is_empty, checkWin, is_black, is_white, robotPlay } from "./utils" import RandomTree from "./components/RandomTree.vue"; // import { robotPlay } from './utils/api' // 配置 -const size = ref(20) +const size = ref(30) const win_size = ref(5) // 棋盘 const lattices = ref([]) diff --git a/src/utils/index.js b/src/utils/index.js index d0503bb..ee12b56 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -145,7 +145,6 @@ export function robotPlay(board, win_size) { const _b_score = score[is_black] const _w_score = score[is_white] - if (_b_score == 0 && _w_score == 0) return [] return [{ [`${row}_${col}`]: Math.max(_b_score, _w_score) }] -- GitLab