X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fvariants%2FGrand.js;h=844d62c740c7c203729fb7dadd251792fa5506b8;hp=1409bcc5bb06da2243b44383f9868bd5fdf5fa7a;hb=a6abf094c35a26019e47fea21302c4be32ff030b;hpb=cf1303697774a12ef9bb154014a38797716944cf diff --git a/public/javascripts/variants/Grand.js b/public/javascripts/variants/Grand.js index 1409bcc5..844d62c7 100644 --- a/public/javascripts/variants/Grand.js +++ b/public/javascripts/variants/Grand.js @@ -171,9 +171,9 @@ class GrandRules extends ChessRules || this.isAttackedBySlideNJump(sq, colors, V.CARDINAL, V.steps[V.KNIGHT], "oneStep"); } - play(move, ingame) + updateVariables(move) { - super.play(move, ingame); + super.updateVariables(move); if (move.vanish.length==2 && move.appear.length==1 && move.vanish[1].p != VariantRules.PAWN) { @@ -185,9 +185,9 @@ class GrandRules extends ChessRules } } - undo(move) + unupdateVariables(move) { - super.undo(move); + super.unupdateVariables(move); if (move.vanish.length==2 && move.appear.length==1 && move.vanish[1].p != VariantRules.PAWN) {