Several small improvements + integrate options + first working draft of Cwda
[vchess.git] / client / src / variants / Pawnmassacre.js
index 45756bc..c08b585 100644 (file)
@@ -1,13 +1,18 @@
 import { ChessRules } from "@/base_rules";
 
 export class PawnmassacreRules extends ChessRules {
+
   static get HasFlags() {
     return false;
   }
 
-  static GenRandInitFen(randomness) {
+  get showFirstTurn() {
+    return true;
+  }
+
+  static GenRandInitFen(options) {
     const bFen =
-      ChessRules.GenRandInitFen(randomness)
+      ChessRules.GenRandInitFen(options)
       // Remove castle flags
       .slice(0, -6).concat("-");
     const splitIdx = bFen.indexOf(' ');
@@ -20,4 +25,5 @@ export class PawnmassacreRules extends ChessRules {
       .concat(bFen.substr(splitIdx))
     );
   }
+
 };