Several small improvements + integrate options + first working draft of Cwda
[vchess.git] / client / src / variants / Dice.js
index 682b8d5..2e98776 100644 (file)
@@ -2,6 +2,7 @@ import { ChessRules, Move } from "@/base_rules";
 import { randInt } from "@/utils/alea";
 
 export class DiceRules extends ChessRules {
+
   static get CanAnalyze() {
     return false;
   }
@@ -34,8 +35,8 @@ export class DiceRules extends ChessRules {
     return (L > 0 ? this.p2play[L-1] : "-");
   }
 
-  static GenRandInitFen(randomness) {
-    return ChessRules.GenRandInitFen(randomness) + " -";
+  static GenRandInitFen(options) {
+    return ChessRules.GenRandInitFen(options) + " -";
   }
 
   canMove(piece, color, [x, y]) {
@@ -177,4 +178,5 @@ export class DiceRules extends ChessRules {
   getNotation(move) {
     return super.getNotation(move) + "/" + move.end.p.toUpperCase();
   }
+
 };