Fix bugs on variant page + update packages
[vchess.git] / client / src / components / ComputerGame.vue
index 21b1113..9f8e1a3 100644 (file)
@@ -87,6 +87,7 @@ export default {
           fenStart: this.gameInfo.fen,
           players: players,
           mycolor: mycolor,
+          score: "*",
         });
       this.compWorker.postMessage(["init",this.gameInfo.fen]);
       if (mycolor != "w" || this.gameInfo.mode == "auto")
@@ -107,8 +108,8 @@ export default {
         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";
     },
   },