X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FProgressive2.js;h=8df8eeae547f1a55d298764e855b2a8c5824bf17;hb=21704b041240cb440d03cfa64a90ed0be6f28415;hp=ffc22bc973589889b63bc0e1c61e3e5d53606c86;hpb=eaab401ea14ebbde1e49ede7c639bc3b6556bf08;p=vchess.git diff --git a/client/src/variants/Progressive2.js b/client/src/variants/Progressive2.js index ffc22bc9..8df8eeae 100644 --- a/client/src/variants/Progressive2.js +++ b/client/src/variants/Progressive2.js @@ -4,6 +4,7 @@ import { ChessRules } from "@/base_rules"; import { randInt } from "@/utils/alea"; export class Progressive2Rules extends Progressive1Rules { + static get PawnSpecs() { return Object.assign( {}, @@ -16,6 +17,10 @@ export class Progressive2Rules extends Progressive1Rules { return false; } + static get HasEnpassant() { + return false; + } + postPlay(move) { const c = move.turn[0]; const piece = move.vanish[0].p; @@ -26,7 +31,6 @@ export class Progressive2Rules extends Progressive1Rules { } undo(move) { - this.disaggregateFlags(JSON.parse(move.flags)); V.UndoOnBoard(this.board, move); if (this.turn != move.turn[0]) this.movesCount--; this.turn = move.turn[0]; @@ -48,4 +52,5 @@ export class Progressive2Rules extends Progressive1Rules { k: 1000 }; } + };