X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTwokings.js;h=b5f2b05986f76c5beb90bfd56e5e4689165070e1;hp=6606da581802d2cc39c640071ea8c5dba9e521ca;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hpb=cee75a57d2f4f89c89d64cefbab55d839a238ed9 diff --git a/client/src/variants/Twokings.js b/client/src/variants/Twokings.js index 6606da58..b5f2b059 100644 --- a/client/src/variants/Twokings.js +++ b/client/src/variants/Twokings.js @@ -55,8 +55,8 @@ export class TwokingsRules extends CoregalRules { return squares; } - static GenRandInitFen(randomness) { - if (randomness == 0) + static GenRandInitFen(options) { + if (options.randomness == 0) return "rnqkkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNQKKBNR w 0 adehadeh -"; const replaceBishop = (fen, first, ch1, ch2) => { @@ -84,7 +84,7 @@ export class TwokingsRules extends CoregalRules { }; const fen = - CoregalRules.GenRandInitFen(randomness) + CoregalRules.GenRandInitFen(options) .replace("q", "k").replace("Q", "K"); // Now replace a bishop by the queen, // so that bishops are of different colors: