From a158249f235a9c0ecd084111c925784b9867e16c Mon Sep 17 00:00:00 2001 From: icezhb <860435387@qq.com> Date: Sun, 29 Dec 2024 18:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index d2a454a..e133094 100644 --- a/src/App.vue +++ b/src/App.vue @@ -444,7 +444,7 @@ export default { // 查获胜条件 checkWinner(row, col) { - const player = this.board[row][col].player + // const player = this.board[row][col].player let hasFiveInRow = false let winningPositions = [] @@ -567,11 +567,6 @@ export default { // 验证获胜棋子 validateWinningPieces(pieces, player) { - const validation = pieces.map(([row, col]) => ({ - position: [row, col], - valid: this.isValidPosition(row, col), - piece: this.board[row][col], - })) return pieces.every(([row, col]) => { return this.isValidPosition(row, col) && this.board[row][col].player === player })