From cc0dbe7d7f0950d0107ace5521d69ce353e5a7ec Mon Sep 17 00:00:00 2001 From: 63db3122f0950a2aef64df95 <63db3122f0950a2aef64df95@devide> Date: Mon, 3 Jul 2023 09:10:00 +0000 Subject: [PATCH] Mon Jul 3 09:10:00 UTC 2023 inscode --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6746133..c25caf1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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 } -- GitLab