X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FDoublemove2.js;h=287f94919bd1cc73bef6aaaa6f36453f2631ea1b;hp=f9d5e4f1ad1e7be005f29e2a16387e87ab6cd55c;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hpb=31c535953c843b28434a7fcdf7b4da0b376774ab diff --git a/client/src/variants/Doublemove2.js b/client/src/variants/Doublemove2.js index f9d5e4f1..287f9491 100644 --- a/client/src/variants/Doublemove2.js +++ b/client/src/variants/Doublemove2.js @@ -2,6 +2,7 @@ import { ChessRules } from "@/base_rules"; import { randInt } from "@/utils/alea"; export class Doublemove2Rules extends ChessRules { + static IsGoodEnpassant(enpassant) { const squares = enpassant.split(","); if (squares.length > 2) return false; @@ -234,4 +235,5 @@ export class Doublemove2Rules extends ChessRules { // TODO: not always the best move played (why ???) return doubleMove; } + };