X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=9f8e1a306399c5d6ccfb2c235af72dfd38a97c0b;hb=2c6cb25eb12074af1f0fb29383eef8a175abb0f0;hp=f69e1e6cbc15358d75f66fe3e83812eb9db901d8;hpb=7667307fada9f344e66e664b3bc3001326c36e88;p=vchess.git diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index f69e1e6c..9f8e1a30 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -87,31 +87,24 @@ 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") this.playComputerMove(); }, playComputerMove: function() { - -console.log("call comp move"); - this.timeStart = Date.now(); this.compWorker.postMessage(["askmove"]); }, // TODO: do not process if game is over (check score ?) processMove: function(move) { -console.log("play move"); - console.log(move); // Send the move to web worker (including his own moves) this.compWorker.postMessage(["newmove",move]); // subTurn condition for Marseille (and Avalanche) rules if ((!this.vr.subTurn || this.vr.subTurn <= 1) && (this.gameInfo.mode == "auto" || this.vr.turn != this.game.mycolor)) { - -console.log("ask new comp move"); - this.playComputerMove(); } },