Some fixes, draw lines on board, add 7 variants
[vchess.git] / client / src / variants / Shatranj.js
index 105331f..d8e4460 100644 (file)
@@ -9,6 +9,10 @@ export class ShatranjRules extends ChessRules {
     return false;
   }
 
+  static get Monochrome() {
+    return true;
+  }
+
   static get PawnSpecs() {
     return Object.assign(
       {},
@@ -20,6 +24,11 @@ export class ShatranjRules extends ChessRules {
     );
   }
 
+  getPpath(b) {
+    if (b[1] == 'b') return "Shatranj/" + b;
+    return b;
+  }
+
   static get ElephantSteps() {
     return [
       [-2, -2],