删除未使用代码

This commit is contained in:
icezhb 2024-12-29 18:11:32 +08:00
parent aab9b43fe0
commit a158249f23

View File

@ -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
})