X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAlice.js;h=4d6b3c374281cc149d030087fcfe5290fb161f49;hb=6b7b2cf720e6255e4da0dc34fee363c456346a58;hp=5e9ff93d28e5925600ce4057ccd6f0341d28e4fc;hpb=f9c36b2da005b596ad656f4b6cc4e09ef3c656f1;p=vchess.git diff --git a/client/src/variants/Alice.js b/client/src/variants/Alice.js index 5e9ff93d..4d6b3c37 100644 --- a/client/src/variants/Alice.js +++ b/client/src/variants/Alice.js @@ -107,8 +107,7 @@ export const VariantRules = class AliceRules extends ChessRules { // Finally filter impossible moves const res = moves.filter(m => { if (m.appear.length == 2) { - //castle - // appear[i] must be an empty square on the other board + // Castle: appear[i] must be an empty square on the other board for (let psq of m.appear) { if (this.getSquareOccupation(psq.x, psq.y, 3 - mirrorSide) != V.EMPTY) return false; @@ -296,6 +295,10 @@ export const VariantRules = class AliceRules extends ChessRules { ); } + static get SEARCH_DEPTH() { + return 2; + } + getNotation(move) { if (move.appear.length == 2 && move.appear[0].p == V.KING) { if (move.end.y < move.start.y) return "0-0-0";