- const moveNumber = i / 2 + 1;
- pgn += moveNumber + "." + i + " " +
- getFullNotation(this.moves[i], "unambiguous") + "\n";
+ const moveNumber = this.moves[i].index / 2 + 1;
+ // Skip "dots move", useless for machine reading:
+ if (this.moves[i].notation != "...") {
+ pgn += moveNumber + ".w " +
+ getFullNotation(this.moves[i], "unambiguous") + "\n";
+ }