methods: {
launchGame: function(game) {
this.compWorker.postMessage(["scripts", this.gameInfo.vname]);
- if (!game || !V.IsGoodFen(game.fen)) {
+ if (!game) {
game = {
vname: this.gameInfo.vname,
fenStart: V.GenRandInitFen(this.st.settings.randomness),
},
gameOver: function(score) {
this.game.score = score;
- this.game.scoreMsg = getScoreMessage(score);
+ this.game.scoreMsg = getScoreMessage(score, V.ReverseColors);
// If comp is thinking, let him finish:
if (!this.compThink) this.$emit("game-stopped");
}