import { randInt } from "@/utils/alea";
export class DiceRules extends ChessRules {
+
+ static get Options() {
+ return {
+ select: [
+ {
+ label: "Randomness",
+ variable: "randomness",
+ defaut: 2,
+ options: [
+ { label: "Deterministic", value: 0 },
+ { label: "Symmetric random", value: 1 },
+ { label: "Asymmetric random", value: 2 }
+ ]
+ }
+ ]
+ };
+ }
+
static get CanAnalyze() {
return false;
}
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]) {
getNotation(move) {
return super.getNotation(move) + "/" + move.end.p.toUpperCase();
}
+
};