X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FKnightrelay1.js;h=4f9f7e350e85e13d651eedd00bad19c70ef05525;hb=6f2f94374f1e73c375edf732d9425e575e81fff7;hp=3e7bf38ceac762ba1e756c614ef44e8d2e7b5f8e;hpb=68e19a449db7a12e0a168e99cd750d985c983ba1;p=vchess.git diff --git a/client/src/variants/Knightrelay1.js b/client/src/variants/Knightrelay1.js index 3e7bf38c..4f9f7e35 100644 --- a/client/src/variants/Knightrelay1.js +++ b/client/src/variants/Knightrelay1.js @@ -1,10 +1,12 @@ import { ChessRules } from "@/base_rules"; -export const VariantRules = class Knightrelay1Rules extends ChessRules { +export class Knightrelay1Rules extends ChessRules { static get HasEnpassant() { return false; } + // TODO: IsGoodPosition to check that 2 knights are on the board... + getPotentialMovesFrom([x, y]) { let moves = super.getPotentialMovesFrom([x, y]); @@ -97,7 +99,7 @@ export const VariantRules = class Knightrelay1Rules extends ChessRules { return { p: 1, r: 5, - n: 7, //the knight is valuable + n: 0, //the knight isn't captured - value doesn't matter b: 3, q: 9, k: 1000