Almost added TitanChess + EvolutionChess
[vchess.git] / client / src / variants / Rifle.js
index 98661ae..7d71a98 100644 (file)
@@ -1,12 +1,6 @@
 import { ChessRules, PiPo, Move } from "@/base_rules";
 
 export class RifleRules extends ChessRules {
-  getEpSquare(moveOrSquare) {
-    if (typeof moveOrSquare !== "object" || moveOrSquare.appear.length > 0)
-      return super.getEpSquare(moveOrSquare);
-    // Capturing move: no en-passant
-    return undefined;
-  }
 
   getBasicMove([sx, sy], [ex, ey], tr) {
     let mv = new Move({
@@ -78,4 +72,5 @@ export class RifleRules extends ChessRules {
   static get SEARCH_DEPTH() {
     return 2;
   }
+
 };