From: Benjamin Auder Date: Sat, 29 Feb 2020 23:51:39 +0000 (+0100) Subject: Better pieces values in Knghtrelay variant X-Git-Url: https://git.auder.net/variants/Bario/current/doc/html/pieces/cr.svg?a=commitdiff_plain;h=e2d2b49c4b8f5228126991ac5cf41086a51a4285;p=vchess.git Better pieces values in Knghtrelay variant --- diff --git a/client/src/variants/Knightrelay.js b/client/src/variants/Knightrelay.js index daa7bbb8..eebb0f22 100644 --- a/client/src/variants/Knightrelay.js +++ b/client/src/variants/Knightrelay.js @@ -77,6 +77,17 @@ export const VariantRules = class KnightrelayRules extends ChessRules { return false; } + static get VALUES() { + return { + p: 1, + r: 5, + n: 7, //the knight is valuable + b: 3, + q: 9, + k: 1000 + }; + } + getNotation(move) { if (move.appear.length == 2 && move.appear[0].p == V.KING) // Castle