X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=ce895ee1d0df231576ceb6a6214936900e28ff0e;hp=83b4e023af99c4a164e1560c9cdd435f5865d11c;hb=9d4a02185291aad8d8af5d35c1d6a808a1e11c9f;hpb=f53871dbb29b5f7f4dd8d72e76387ad8f1d7863b diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index 83b4e023..ce895ee1 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -92,6 +92,9 @@ export default { this.gameOver(scoreObj.score); return; } + if (this.game.score != "*") + // The game already ended, probably because of a user action + return; // Send the move to web worker (including his own moves) this.compWorker.postMessage(["newmove", move]); if (this.gameInfo.mode == "auto" || this.vr.turn != this.game.mycolor)