X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRugby.js;h=d802ca1a861d4f8cb30b18408a2a400c69f14985;hb=809ab1a837e0f748987bcf7d66defa11cb7a1792;hp=209def87b95c969c9539bbd4e2f18aaa52c55dbd;hpb=6f2f94374f1e73c375edf732d9425e575e81fff7;p=vchess.git diff --git a/client/src/variants/Rugby.js b/client/src/variants/Rugby.js index 209def87..d802ca1a 100644 --- a/client/src/variants/Rugby.js +++ b/client/src/variants/Rugby.js @@ -2,6 +2,7 @@ import { ChessRules } from "@/base_rules"; import { ArrayFun } from "@/utils/array"; export class RugbyRules extends ChessRules { + static get HasFlags() { return false; } @@ -61,4 +62,9 @@ export class RugbyRules extends ChessRules { // Stalemate (will probably never happen) return "1/2"; } + + getNotation(move) { + return V.CoordsToSquare(move.start) + V.CoordsToSquare(move.end); + } + };