X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FDice.js;h=2e987764a703172f8d91a64af6765f22336e9a26;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hp=682b8d5071e714564791791f92a9a71ac5f0bda6;hpb=c98f15e70fdf7c20ae4f17b54fee8a5736c7ce13;p=vchess.git diff --git a/client/src/variants/Dice.js b/client/src/variants/Dice.js index 682b8d50..2e987764 100644 --- a/client/src/variants/Dice.js +++ b/client/src/variants/Dice.js @@ -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(); } + };