diff --git a/src/App.vue b/src/App.vue index 67461338cdc396531be5d338352e7bd057c4d34c..c25caf13ec8f81b11e896500b0a80a7d180eeb57 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 }