Skip to content

Commit

Permalink
Update Utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ProLoser authored Oct 22, 2024
1 parent 395aa09 commit ae980f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export function calculate(state: GameType, from: number | "white" | "black", to:

// remove from previous position
nextGame.board[from] -= Math.sign(nextGame.board[from]);

nextGame.status = 'moved'
}
return { state: nextGame, moveLabel };
}

0 comments on commit ae980f0

Please sign in to comment.