X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FMonocolor.js;h=1478f4821fd639aee9246f7adda847ef90f2059d;hp=1e263699d615445ef0d1c7a3cb830892da39e834;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hpb=cee75a57d2f4f89c89d64cefbab55d839a238ed9 diff --git a/client/src/variants/Monocolor.js b/client/src/variants/Monocolor.js index 1e263699..1478f482 100644 --- a/client/src/variants/Monocolor.js +++ b/client/src/variants/Monocolor.js @@ -156,9 +156,9 @@ export class MonocolorRules extends ChessRules { return "1/2"; } - static GenRandInitFen(randomness) { + static GenRandInitFen(options) { // Remove the en-passant + castle part of the FEN - let fen = ChessRules.GenRandInitFen(randomness).slice(0, -6); + let fen = ChessRules.GenRandInitFen(options).slice(0, -6); // Replace kings with queens fen = fen.replace("k", "q").replace("K", "Q"); // Move pawns up: