Almost added TitanChess + EvolutionChess
[vchess.git] / client / src / variants / Grasshopper.js
index 5069e23..90411d1 100644 (file)
@@ -3,6 +3,7 @@ import { ArrayFun } from "@/utils/array";
 import { randInt } from "@/utils/alea";
 
 export class GrasshopperRules extends ChessRules {
+
   static get HasEnpassant() {
     return false;
   }
@@ -11,10 +12,7 @@ export class GrasshopperRules extends ChessRules {
     return Object.assign(
       {},
       ChessRules.PawnSpecs,
-      {
-        twoSquares: false,
-        promotions: ChessRules.PawnSpecs.promotions.concat([V.GRASSHOPPER])
-      }
+      { promotions: ChessRules.PawnSpecs.promotions.concat([V.GRASSHOPPER]) }
     );
   }
 
@@ -111,4 +109,5 @@ export class GrasshopperRules extends ChessRules {
         "/gggggggg/pppppppp/8/8/PPPPPPPP/GGGGGGGG/"
       );
   }
+
 };