第七代电脑
This commit is contained in:
parent
43d761d49a
commit
c48a15552e
@ -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++
|
||||||
|
Loading…
Reference in New Issue
Block a user