X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=9f8e1a306399c5d6ccfb2c235af72dfd38a97c0b;hb=2c6cb25eb12074af1f0fb29383eef8a175abb0f0;hp=21b1113580ed9b36d1de02d123d6784170217a2b;hpb=834c202a003ca6285106133336701b340939ba12;p=vchess.git diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index 21b11135..9f8e1a30 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -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"; }, },