feat : add sounds

This commit is contained in:
GuillaumeSD
2024-03-20 04:57:37 +01:00
parent 32fc196e74
commit 9e497cb24b
15 changed files with 74 additions and 26 deletions

View File

@@ -247,3 +247,8 @@ export const getStartingFen = (
return history[0].before;
};
export const isCheck = (fen: string): boolean => {
const game = new Chess(fen);
return game.inCheck();
};