fix : lint errors & bump chess.js version

This commit is contained in:
GuillaumeSD
2025-04-21 15:44:47 +02:00
parent d8fe0ed79f
commit cff6b61bc7
11 changed files with 256 additions and 53 deletions

View File

@@ -34,7 +34,7 @@ export const playSoundFromMove = async (move: Move | null) => {
playPromoteSound();
} else if (move.captured) {
playCaptureSound();
} else if (move.flags.includes("k") || move.flags.includes("q")) {
} else if (move.isKingsideCastle() || move.isQueensideCastle()) {
playCastleSound();
} else {
playMoveSound();