第七代电脑

This commit is contained in:
icezhb 2024-12-29 13:17:05 +08:00
parent 43d761d49a
commit c48a15552e

View File

@ -605,7 +605,6 @@ export default {
this.board[row][col] = player this.board[row][col] = player
let consecutive = 1 let consecutive = 1
let space = false
let blocked = 0 let blocked = 0
// //
@ -619,7 +618,6 @@ export default {
if (this.board[newRow][newCol] === player) { if (this.board[newRow][newCol] === player) {
consecutive++ consecutive++
} else if (this.board[newRow][newCol] === 0) { } else if (this.board[newRow][newCol] === 0) {
space = true
break break
} else { } else {
blocked++ blocked++
@ -638,7 +636,6 @@ export default {
if (this.board[newRow][newCol] === player) { if (this.board[newRow][newCol] === player) {
consecutive++ consecutive++
} else if (this.board[newRow][newCol] === 0) { } else if (this.board[newRow][newCol] === 0) {
space = true
break break
} else { } else {
blocked++ blocked++