diff --git a/src/lib/chess.ts b/src/lib/chess.ts index ee27eb6..345bb1d 100644 --- a/src/lib/chess.ts +++ b/src/lib/chess.ts @@ -222,6 +222,7 @@ export const getIsPieceSacrifice = ( if ( Math.abs(capturedPieces["w"].length - capturedPieces["b"].length) <= 1 && capturedPieces["w"].concat(capturedPieces["b"]).every((p) => p === "p") + ) { return false; }