Adjustments + add en-passant to Zen rules
[vchess.git] / client / src / variants / Shatranj.js
index 105331f..7aab305 100644 (file)
@@ -9,6 +9,14 @@ export class ShatranjRules extends ChessRules {
     return false;
   }
 
+  static get Monochrome() {
+    return true;
+  }
+
+  static get Notoodark() {
+    return true;
+  }
+
   static get PawnSpecs() {
     return Object.assign(
       {},
@@ -20,6 +28,11 @@ export class ShatranjRules extends ChessRules {
     );
   }
 
+  getPpath(b) {
+    if (b[1] == 'b') return "Shatranj/" + b;
+    return b;
+  }
+
   static get ElephantSteps() {
     return [
       [-2, -2],