X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCapture.js;h=19ce734e09d5330bd65d3e8cf990253015756226;hb=bc0b9205e41c5db0552e4ccf060b945342e36ed0;hp=413356dd1df7cb51b0f076e8b568d83c6e70e7dc;hpb=2f9fcef3eb606c6389249c35393265de7d8f392f;p=vchess.git diff --git a/client/src/variants/Capture.js b/client/src/variants/Capture.js index 413356dd..19ce734e 100644 --- a/client/src/variants/Capture.js +++ b/client/src/variants/Capture.js @@ -6,7 +6,7 @@ export class CaptureRules extends ChessRules { return moves.filter(m => m.vanish.length == 2 && m.appear.length == 1); } - // Stop at the first capture found (if any) + // Stop at the first capture found (if any) atLeastOneCapture() { const color = this.turn; const oppCol = V.GetOppCol(color);