提交 1e9f5771 编写于 作者: U u014301111

Fri Jul 28 03:57:00 CST 2023 inscode

上级 e05a2a7e
{
"name": "vuejs-with-vite",
"version": "0.4.0",
"version": "0.4.1",
"scripts": {
"dev": "vite",
"build": "vite build",
......
......@@ -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([])
......
......@@ -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)
}]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册