Fix Konane and Yote computer play + a few bugs
[vchess.git] / client / src / components / ComputerGame.vue
index 72e4f5e..fbf2d8e 100644 (file)
@@ -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");
     }