X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=variants%2FSuction%2Fclass.js;h=e2e36c866ba9bda5d8a51a12b0bbb814bc2f5a17;hp=f9cf26dc33ad67f822936101490d2c8cfe2442a4;hb=554e3ad3773a3123701bd894db1df4c1843283b8;hpb=0a36d31a3e4fd356624f70058cbafc135fbf6fba diff --git a/variants/Suction/class.js b/variants/Suction/class.js index f9cf26d..e2e36c8 100644 --- a/variants/Suction/class.js +++ b/variants/Suction/class.js @@ -42,8 +42,8 @@ export default class SuctionRules extends ChessRules { } genRandInitFen(seed) { - const gr = new GiveawayRules( - {mode: "suicide", options: this.options, genFenOnly: true}); + const options = Object.assign({mode: "suicide"}, this.options); + const gr = new GiveawayRules({options: options, genFenOnly: true}); // Add empty cmove: return ( gr.genRandInitFen(seed).slice(0, -17) + '{"enpassant":"-","cmove":"-"}');