X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=fbf2d8e75c87e7e37331859e2886fdd2df8cb740;hb=c11afcdfa8678a27ea6c0822f6d3fef83967701b;hp=72e4f5e3bdc32020bc1b6321cae6b820221d6228;hpb=30010f33fc5581e35ca9486ff6e0ccb1270239d1;p=vchess.git diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index 72e4f5e3..fbf2d8e7 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -61,7 +61,7 @@ export default { 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), @@ -119,7 +119,7 @@ export default { }, 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"); }