+ const computeScore = () => {
+ const score = this.vr.getCurrentScore();
+ if (!navigate) {
+ if (["1-0","0-1"].includes(score))
+ this.lastMove.notation += "#";
+ else if (this.vr.getCheckSquares(this.vr.turn).length > 0)
+ this.lastMove.notation += "+";
+ }
+ if (score != "*" && this.game.mode == "analyze") {
+ const message = getScoreMessage(score);
+ // Just show score on screen (allow undo)
+ this.showEndgameMsg(score + " . " + this.st.tr[message]);
+ }
+ return score;
+ };