From 07c9ea8fa733c68fbb06dc983dc91364105027eb Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Sat, 3 Aug 2019 21:53:22 -0700 Subject: [PATCH] fix friendly group bug --- js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index df6c08c..2a3f0fc 100644 --- a/js/main.js +++ b/js/main.js @@ -102,10 +102,10 @@ class Point { } // returns all opposing neighbors that do not have an opposing neighbor checkGroup = () => { // return statement works for first layer bubbling - // return this.findStone(gameState.turn).filter(val => val.emptyNeighbor()); - if (!this.findStone(gameState.turn).filter(val => val.emptyNeighbor()).length) { + return this.findStone(gameState.turn).filter(val => val.emptyNeighbor()); + // if (!this.findStone(gameState.turn).filter(val => val.emptyNeighbor()).length) { - } + // } // returns all friendly neighbors that have an empty neighbor }