fix friendly group bug
This commit is contained in:
parent
0a8fff1902
commit
07c9ea8fa7
1 changed files with 3 additions and 3 deletions
|
@ -102,10 +102,10 @@ class Point {
|
||||||
}
|
}
|
||||||
// returns all opposing neighbors that do not have an opposing neighbor
|
// returns all opposing neighbors that do not have an opposing neighbor
|
||||||
checkGroup = () => { // return statement works for first layer bubbling
|
checkGroup = () => { // return statement works for first layer bubbling
|
||||||
// return this.findStone(gameState.turn).filter(val => val.emptyNeighbor());
|
return this.findStone(gameState.turn).filter(val => val.emptyNeighbor());
|
||||||
if (!this.findStone(gameState.turn).filter(val => val.emptyNeighbor()).length) {
|
// if (!this.findStone(gameState.turn).filter(val => val.emptyNeighbor()).length) {
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
// returns all friendly neighbors that have an empty neighbor
|
// returns all friendly neighbors that have an empty neighbor
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue