- }
- if (!this.analyze)
- this.$emit("newmove", move); //post-processing (e.g. computer play)
- // Is opponent in check?
- this.incheck = this.vr.getCheckSquares(this.vr.turn);
- const score = this.vr.getCurrentScore();
- if (score != "*")
- {
- const message = this.getScoreMessage(score);
- if (!this.analyze)
- this.$emit("gameover", score, message);
- else //just show score on screen (allow undo)
- this.showEndgameMsg(score + " . " + message);
- }
+ // Is opponent in check?
+ this.incheck = this.vr.getCheckSquares(this.vr.turn);
+ const score = this.vr.getCurrentScore();
+ if (score != "*")
+ {
+ const message = this.getScoreMessage(score);
+ if (this.game.mode != "analyze")
+ this.$emit("gameover", score, message);
+ else //just show score on screen (allow undo)
+ this.showEndgameMsg(score + " . " + message);
+ }
+ if (!navigate && this.game.mode!="analyze")
+ this.$emit("newmove", move); //post-processing (e.g. computer play)
+ };
+ if (!!receive && this.game.vname != "Dark")
+ this.animateMove(move, doPlayMove);
+ else
+ doPlayMove();