X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FCheckered.js;h=1e42d9955d84f744994c1e72ff0ec3d9f601d2f6;hb=b83a675a3066c67cc7843ae27ad8aeffd15b0976;hp=78b5ef071147173e4a399d5f10d56b8a3a6a891d;hpb=bbf668379ae5980d5068dd76cf907c87ce7ed648;p=vchess.git diff --git a/client/src/variants/Checkered.js b/client/src/variants/Checkered.js index 78b5ef07..1e42d995 100644 --- a/client/src/variants/Checkered.js +++ b/client/src/variants/Checkered.js @@ -279,7 +279,7 @@ export const VariantRules = class CheckeredRules extends ChessRules { const oppCol = V.GetOppCol(this.turn); for (let i = 0; i < V.size.x; i++) { for (let j = 0; j < V.size.y; j++) { - // NOTE: just testing == color isn't enough because of checkred pieces + // NOTE: just testing == color isn't enough because of checkered pieces if (this.board[i][j] != V.EMPTY && this.getColor(i, j) != oppCol) { const moves = this.getPotentialMovesFrom([i, j]); if (moves.length > 0) { @@ -414,6 +414,10 @@ export const VariantRules = class CheckeredRules extends ChessRules { super.undo(move); } + static get SEARCH_DEPTH() { + return 2; + } + getNotation(move) { if (move.appear.length == 2) { // Castle