fenStart: this.gameInfo.fen,
players: players,
mycolor: mycolor,
+ score: "*",
});
this.compWorker.postMessage(["init",this.gameInfo.fen]);
if (mycolor != "w" || this.gameInfo.mode == "auto")
this.playComputerMove();
}
},
- // When game ends normally, just switch to analyze mode
- gameOver: function() {
+ gameOver: function(score) {
+ // Just switch to analyze mode: no user action can set score
this.game.mode = "analyze";
},
},