From d23eb24c843a292f4b0dc4336b8c2f2b8c710772 Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Mon, 5 Aug 2019 11:41:22 -0700 Subject: [PATCH] fix capture count bug --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 8e6e9a7..d38aef8 100644 --- a/js/main.js +++ b/js/main.js @@ -233,7 +233,7 @@ function resolveCaptures(point) { point.checkCapture(); if(point.capturing.filter(cap => cap).length ) { point.capturing.forEach(cap => { - gameState.playerState[cap.stone > 0 ? 'bCaptures' : 'wCaptures']++; + gameState.playerState[point.stone > 0 ? 'bCaptures' : 'wCaptures']++; cap.stone = 0; }) }