Skip to content

Commit

Permalink
fix counting
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 committed Aug 7, 2024
1 parent 7041db1 commit e23a0f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/client/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ export const useGameStore = create((set, get) => ({
}))

function createMoveData(baseBoard, moves, move) {
if (move.pass && moves.length && moves[moves.length - 1].pass) {
return [move, count(baseBoard), [-1, -1]]
}
if (move.counting) {
let updated = move.resetCounting ?
resetCounting(baseBoard) :
Expand Down

0 comments on commit e23a0f7

Please sign in to comment.