diff --git a/src/Utils.ts b/src/Utils.ts index 98bd4e4..787c4c3 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -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 }; } \ No newline at end of file