methods: {
launchGame: function(game) {
this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
methods: {
launchGame: function(game) {
this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
game = {
vname: this.gameInfo.vname,
fenStart: V.GenRandInitFen(this.st.settings.randomness),
game = {
vname: this.gameInfo.vname,
fenStart: V.GenRandInitFen(this.st.settings.randomness),
if (!game.mycolor) game.mycolor = (Math.random() < 0.5 ? "w" : "b");
this.compWorker.postMessage(["init", game.fen]);
this.vr = new V(game.fen);
if (!game.mycolor) game.mycolor = (Math.random() < 0.5 ? "w" : "b");
this.compWorker.postMessage(["init", game.fen]);
this.vr = new V(game.fen);