Draft Fullcavalry and Atomic2 (pawn removal). Fix Grand
[vchess.git] / client / src / variants / Titan.js
index aadc3e7..e9b0594 100644 (file)
@@ -185,6 +185,14 @@ export class TitanRules extends ChessRules {
     return moves;
   }
 
+  hoverHighlight(x, y) {
+    const c = this.turn;
+    return (
+      this.movesCount <= 3 &&
+      ((c == 'w' && x == 7) || (c == 'b' && x == 0))
+    );
+  }
+
   // Special case of move 1 = choose squares, knight first, then bishop
   doClick(square) {
     if (this.movesCount >= 4) return null;