Update TODO, improve style for Crazyhouse variant, fix an introduced bug in example...
[vchess.git] / client / src / components / ComputerGame.vue
index 83b4e02..ce895ee 100644 (file)
@@ -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)