Teleport2 (no king repositioning) + do not relay some challenges
[vchess.git] / client / src / variants / Rugby.js
index 209def8..d802ca1 100644 (file)
@@ -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);
+  }
+
 };