Add Coregal variant + simplify time management in Game.vue
[vchess.git] / client / src / components / BaseGame.vue
index 65e96cf..e86c551 100644 (file)
@@ -203,10 +203,12 @@ export default {
       this.positionCursorTo(this.moves.length - 1);
       this.incheck = this.vr.getCheckSquares(this.vr.turn);
       const score = this.vr.getCurrentScore();
-      if (["1-0","0-1"].includes(score))
-        this.moves[L - 1].notation += "#";
-      else if (this.vr.getCheckSquares(this.vr.turn).length > 0)
-        this.moves[L - 1].notation += "+";
+      if (L > 0 && this.moves[L - 1].notation != "...") {
+        if (["1-0","0-1"].includes(score))
+          this.moves[L - 1].notation += "#";
+        else if (this.vr.getCheckSquares(this.vr.turn).length > 0)
+          this.moves[L - 1].notation += "+";
+      }
     },
     positionCursorTo: function(index) {
       this.cursor = index;