Some fixes. Screen variant computer play is still broken, seemingly
[vchess.git] / client / src / variants / Rugby.js
index 04306c2..bbe25cb 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;
   }
@@ -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";
   }
+
 };