fix capture count bug
This commit is contained in:
parent
bab288f82c
commit
d23eb24c84
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ function resolveCaptures(point) {
|
||||||
point.checkCapture();
|
point.checkCapture();
|
||||||
if(point.capturing.filter(cap => cap).length ) {
|
if(point.capturing.filter(cap => cap).length ) {
|
||||||
point.capturing.forEach(cap => {
|
point.capturing.forEach(cap => {
|
||||||
gameState.playerState[cap.stone > 0 ? 'bCaptures' : 'wCaptures']++;
|
gameState.playerState[point.stone > 0 ? 'bCaptures' : 'wCaptures']++;
|
||||||
cap.stone = 0;
|
cap.stone = 0;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue