Hamilton: no postPlay/Undo
[vchess.git] / client / src / variants / Hamilton.js
index 69dd9e5..f8669b7 100644 (file)
@@ -2,6 +2,7 @@ import { ChessRules, Move, PiPo } from "@/base_rules";
 import { randInt } from "@/utils/alea";
 
 export class HamiltonRules extends ChessRules {
+
   static get HasFlags() {
     return false;
   }
@@ -18,7 +19,7 @@ export class HamiltonRules extends ChessRules {
     return "xx";
   }
 
-  hoverHighlight(x, y) {
+  hoverHighlight() {
     return this.movesCount == 0;
   }
 
@@ -137,6 +138,9 @@ export class HamiltonRules extends ChessRules {
     for (let psq of move.appear) board[psq.x][psq.y] = psq.c + psq.p;
   }
 
+  postPlay() {}
+  postUndo() {}
+
   getCheckSquares() {
     return [];
   }
@@ -158,4 +162,5 @@ export class HamiltonRules extends ChessRules {
     // First game move:
     return "N@" + V.CoordsToSquare(move.end);
   }
+
 };