Start thinking about Coregal
[xogo.git] / variants / Giveaway / class.js
index fd23954..45f6a34 100644 (file)
@@ -38,9 +38,12 @@ export default class GiveawayRules extends ChessRules {
   }
 
   genRandInitBaseFen() {
-    let setupOpts = {diffCol: ['b']};
+    let setupOpts = {
+      randomness: this.options["randomness"],
+      diffCol: ['b']
+    };
     if (this.options["mode"] == "losers") {
-      setupOpts["between"] = ['k', 'r'];
+      setupOpts["between"] = [{p1: 'k', p2: 'r'}];
       setupOpts["flags"] = ['r'];
     }
     const s = FenUtil.setupPieces(