X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FYote.js;h=6863026e7708916e05ec972a7ed790864456def9;hb=HEAD;hp=d836bbd69f22b31c6719555b5d46ab5b7466ada9;hpb=7c05a5f2297bea540c700ebceb0cc8b03a7f6775;p=vchess.git diff --git a/client/src/variants/Yote.js b/client/src/variants/Yote.js index d836bbd6..6863026e 100644 --- a/client/src/variants/Yote.js +++ b/client/src/variants/Yote.js @@ -3,6 +3,10 @@ import { randInt } from "@/utils/alea"; export class YoteRules extends ChessRules { + static get Options() { + return null; + } + static get HasFlags() { return false; } @@ -72,7 +76,7 @@ export class YoteRules extends ChessRules { ); } - static GenRandInitFen(randomness) { + static GenRandInitFen() { return "6/6/6/6/6 w 0 12,12 -,-"; } @@ -242,7 +246,7 @@ export class YoteRules extends ChessRules { const mv = this.doClick([x, y]); return (!!mv ? [mv] : []); } - if (x >= V.size.x) return this.getReserveMoves([x, y]); + if (x >= V.size.x) return this.getReserveMoves(x); return this.getPotentialPawnMoves([x, y]); }