X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FRugby.js;h=bbe25cb70dd527b1ac30670ee9f061b99b3f6271;hb=ded43c88fad60fd8f9bb46aabd67f3f2092f65f3;hp=04306c265460fd25cd5be3977b4bffda9bbd0aca;hpb=7769191167d394c3b52625dae62b4af93803d656;p=vchess.git diff --git a/client/src/variants/Rugby.js b/client/src/variants/Rugby.js index 04306c26..bbe25cb7 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; } @@ -14,6 +15,8 @@ export class RugbyRules extends ChessRules { ); } + scanKings() {} + getPotentialMovesFrom(sq) { // There are only pawns: return this.getPotentialPawnMoves(sq); @@ -44,6 +47,10 @@ export class RugbyRules extends ChessRules { preUndo() {} postUndo() {} + getCheckSquares() { + return []; + } + getCurrentScore() { // Turn has changed: const color = V.GetOppCol(this.turn); @@ -55,4 +62,5 @@ export class RugbyRules extends ChessRules { // Stalemate (will probably never happen) return "1/2"; } + };