X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCapture.js;h=19ce734e09d5330bd65d3e8cf990253015756226;hb=801e28709e778bd3a93b014d1f9cb2fb7906e303;hp=d7cc57e5f0576b107ef6a1544012fdafc760cbe1;hpb=a34caaced0796c9118a12c609463582d656e9daf;p=vchess.git diff --git a/client/src/variants/Capture.js b/client/src/variants/Capture.js index d7cc57e5..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); @@ -40,8 +40,4 @@ export class CaptureRules extends ChessRules { return V.KeepCaptures(moves); return moves; } - - static get SEARCH_DEPTH() { - return 4; - } };