X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=a4a53f65ff34d44151f15d5fe2f49d9a4ba9fdff;hp=78f6eb49269647d5dcbf8f2313b6ca2ea6937752;hb=0e16cb26f6380f57f1079ece9bdb654243073bde;hpb=0c3fe8a6c3e02af46e0bc646b40c1a0c420f9dcd diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index 78f6eb49..a4a53f65 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -113,6 +113,8 @@ export default { this.compWorker.postMessage(["askmove"]); }, processMove: function(move) { + if (this.game.score != "*") + return; // Send the move to web worker (including his own moves) this.compWorker.postMessage(["newmove",move]); // subTurn condition for Marseille (and Avalanche) rules