X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=b212d0fdf4e90641683eb57f95a749e6aca58655;hp=91689229c3a3981162b8353aa9d6094afac6f008;hb=eb2d61de8d569470fa329a484efe9bab420b2b82;hpb=d807470f965d4d60a7fe6e1320ac7dfd3f0ea03f diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index 91689229..b212d0fd 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -63,12 +63,12 @@ export default { }; }, methods: { - launchGame: function(game) { + launchGame: function(game, options) { this.compWorker.postMessage(["scripts", this.gameInfo.vname]); if (!game) { game = { vname: this.gameInfo.vname, - fenStart: V.GenRandInitFen(this.st.settings.randomness), + fenStart: V.GenRandInitFen(options), moves: [] }; game.fen = game.fenStart;