X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAmbiguous.js;h=5e2b32a7db4ba28c05cbf0a252bdcba30ca04b85;hp=b478887db1afa5ae87f7fe9264ac0cd523e51b01;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hpb=cee75a57d2f4f89c89d64cefbab55d839a238ed9 diff --git a/client/src/variants/Ambiguous.js b/client/src/variants/Ambiguous.js index b478887d..5e2b32a7 100644 --- a/client/src/variants/Ambiguous.js +++ b/client/src/variants/Ambiguous.js @@ -232,13 +232,13 @@ export class AmbiguousRules extends ChessRules { this.kingPos[this.turn] = [move.vanish[1].x, move.vanish[1].y]; } - static GenRandInitFen(randomness) { - if (randomness == 0) + static GenRandInitFen(options) { + if (options.randomness == 0) return "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w 0 -"; let pieces = { w: new Array(8), b: new Array(8) }; for (let c of ["w", "b"]) { - if (c == 'b' && randomness == 1) { + if (c == 'b' && options.randomness == 1) { pieces['b'] = pieces['w']; break; }