From ae980f0359bf3507f3846b810eee33939c3816e8 Mon Sep 17 00:00:00 2001 From: Dean Sofer <ProLoser@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:30:56 -0700 Subject: [PATCH] Update Utils.ts --- src/Utils.ts | 2 ++ 1 file changed, 2 insertions(+) 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