+ // Post-processing: decorate each move with color + current FEN:
+ // (to be able to jump to any position quickly)
+ this.moves.forEach(move => {
+ // NOTE: this is doing manually what play() function below achieve,
+ // but in a lighter "fast-forward" way
+ move.color = this.vr.turn;
+ move.notation = this.vr.getNotation(move);
+ this.vr.play(move);
+ move.fen = this.vr.getFen();
+ });