X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FWildebeest.js;h=fa89cb2170285d316031f056df2170c0f30cc6b4;hb=a97bdbda4ecf83645d409b717e36828784d1450d;hp=27b131d5c42337cea21915f8966fe4df54074ad2;hpb=241bf8f2a9a2c48d793aeb0b1d20207f6371de70;p=vchess.git diff --git a/client/src/variants/Wildebeest.js b/client/src/variants/Wildebeest.js index 27b131d5..fa89cb21 100644 --- a/client/src/variants/Wildebeest.js +++ b/client/src/variants/Wildebeest.js @@ -117,8 +117,9 @@ export const VariantRules = class WildebeestRules extends ChessRules { const shiftX = color == "w" ? -1 : 1; const startRanks = color == "w" ? [sizeX - 2, sizeX - 3] : [1, 2]; const lastRank = color == "w" ? 0 : sizeX - 1; - const finalPieces = - x + shiftX == lastRank ? [V.ROOK, V.KNIGHT, V.BISHOP, V.QUEEN] : [V.PAWN]; + const finalPieces = x + shiftX == lastRank + ? [V.WILDEBEEST, V.QUEEN] + : [V.PAWN]; if (this.board[x + shiftX][y] == V.EMPTY) { // One square forward @@ -234,8 +235,8 @@ export const VariantRules = class WildebeestRules extends ChessRules { static get VALUES() { return Object.assign( - ChessRules.VALUES, - { c: 3, w: 7 } //experimental + { c: 3, w: 7 }, //experimental + ChessRules.VALUES ); }