Mon Jul 3 09:10:00 UTC 2023 inscode

上级 50a69b3e
......@@ -29,8 +29,8 @@ async function playChess(item, row, col) {
}
// 机器人下棋
const [y, x] = robotPlay(lattices.value, is_white, win_size.value)
lattices.value[x][y] = is_white
const testRobo = checkWin({ row: x, col: y, board: lattices.value, player: is_white, win_size: win_size.value })
lattices.value[y][x] = is_white
const testRobo = checkWin({ row: y, col: x, board: lattices.value, player: is_white, win_size: win_size.value })
if (testRobo) {
isWin = testRobo
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册