methods: {
launchGame: function(game) {
this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
- if (!game) {
+ if (!game || !V.IsGoodFen(game.fen)) {
game = {
vname: this.gameInfo.vname,
fenStart: V.GenRandInitFen(this.st.settings.randomness),