+ this.incheck = this.vr.getCheckSquares();
+ this.score = this.vr.getCurrentScore();
+ if (L >= 1) {
+ const move =
+ !Array.isArray(this.moves[L - 1])
+ ? [this.moves[L - 1]]
+ : this.moves[L - 1];
+ const Lm = move.length;
+ if (["1-0", "0-1"].includes(this.score)) move[Lm - 1].notation += "#";
+ else if (this.incheck.length > 0) move[Lm - 1].notation += "+";
+ }
+ if (this.score != '*') {
+ // Show score on screen
+ const message = getScoreMessage(this.score);
+ this.showEndgameMsg(this.score + " . " + this.st.tr[message]);
+ }